Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
1
Task/Function-definition/Ada/function-definition-1.adb
Normal file
1
Task/Function-definition/Ada/function-definition-1.adb
Normal file
|
|
@ -0,0 +1 @@
|
|||
function Multiply (A, B : Float) return Float;
|
||||
4
Task/Function-definition/Ada/function-definition-2.adb
Normal file
4
Task/Function-definition/Ada/function-definition-2.adb
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
function Multiply (A, B : Float) return Float is
|
||||
begin
|
||||
return A * B;
|
||||
end Multiply;
|
||||
1
Task/Function-definition/Ada/function-definition-3.adb
Normal file
1
Task/Function-definition/Ada/function-definition-3.adb
Normal file
|
|
@ -0,0 +1 @@
|
|||
function Multiply(A, B: Float) return Float is (A * B);
|
||||
3
Task/Function-definition/Ada/function-definition-4.adb
Normal file
3
Task/Function-definition/Ada/function-definition-4.adb
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
generic
|
||||
type Number is digits <>;
|
||||
function Multiply (A, B : Number) return Number;
|
||||
4
Task/Function-definition/Ada/function-definition-5.adb
Normal file
4
Task/Function-definition/Ada/function-definition-5.adb
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
function Multiply (A, B : Number) return Number is
|
||||
begin
|
||||
return A * B;
|
||||
end Multiply;
|
||||
7
Task/Function-definition/Ada/function-definition-6.adb
Normal file
7
Task/Function-definition/Ada/function-definition-6.adb
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
with Multiply;
|
||||
...
|
||||
function Multiply_Integer is new Multiply(Number => Integer);
|
||||
use Multiply_Integer; -- If you must
|
||||
|
||||
type My_Integer is Range -100..100;
|
||||
function Multiply_My_Integer is new Multiply(My_Integer);
|
||||
Loading…
Add table
Add a link
Reference in a new issue