Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
1
Task/Function-definition/Ada/function-definition-1.ada
Normal file
1
Task/Function-definition/Ada/function-definition-1.ada
Normal file
|
|
@ -0,0 +1 @@
|
|||
function Multiply (A, B : Float) return Float;
|
||||
4
Task/Function-definition/Ada/function-definition-2.ada
Normal file
4
Task/Function-definition/Ada/function-definition-2.ada
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.ada
Normal file
1
Task/Function-definition/Ada/function-definition-3.ada
Normal file
|
|
@ -0,0 +1 @@
|
|||
function Multiply(A, B: Float) return Float is (A * B);
|
||||
3
Task/Function-definition/Ada/function-definition-4.ada
Normal file
3
Task/Function-definition/Ada/function-definition-4.ada
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.ada
Normal file
4
Task/Function-definition/Ada/function-definition-5.ada
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.ada
Normal file
7
Task/Function-definition/Ada/function-definition-6.ada
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