This commit is contained in:
Ingy döt Net 2013-04-10 21:29:02 -07:00
parent 764da6cbbb
commit db842d013d
19005 changed files with 197040 additions and 7 deletions

View file

@ -0,0 +1 @@
function Multiply (A, B : Float) return Float;

View file

@ -0,0 +1,4 @@
function Multiply (A, B : Float) return Float is
begin
return A * B;
end Multiply;

View file

@ -0,0 +1 @@
function Multiply(A, B: Float) return Float is (A * B);

View file

@ -0,0 +1,3 @@
generic
type Number is digits <>;
function Multiply (A, B : Number) return Number;

View file

@ -0,0 +1,4 @@
function Multiply (A, B : Number) return Number is
begin
return A * B;
end Multiply;

View 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);