comp.lang.ada
 help / color / mirror / Atom feed
From: anon@anon.org (anon)
Subject: Re: urgent question - generics
Date: Mon, 03 Sep 2007 21:39:40 GMT
Date: 2007-09-03T21:39:40+00:00	[thread overview]
Message-ID: <wa%Ci.488045$p47.342647@bgtnsc04-news.ops.worldnet.att.net> (raw)
In-Reply-To: d62dne6o2JJxrkHbnZ2dnUVZ_iydnZ2d@comcast.com

Your code does not solve any form of the lady's question! Which stated that 
the procedure did not have a parameter!

I answer how to call a procedure from a function, where the procedure was 
passed in the functional pararmeter list. 

In <d62dne6o2JJxrkHbnZ2dnUVZ_iydnZ2d@comcast.com>, tmoran@acm.org writes:
>>  procedure test is
>>    begin -- test
>>      Ada.Text_IO.Put_Line ( "Testing" ) ;
>>    end test ;
>>
>>
>>  Result : Float ;
>>
>>begin
>>  Result := function_0 ( test'address, 0.5 ) ;
>>end zzero ;
>   Ada is designed so the compiler can help catch errors, but if you
>would rather hide the nature of the parameter to function_0 from the
>compiler, and use a debugger to find the resulting errors yourself, try:
>     procedure test1(x : in Integer) is
>     begin
>       Ada.Text_IO.Put_Line ( "Test1" & Integer'image(x));
>     end test1;
>
>     test2 : float;
>
>and
>     Result := function_0 ( test1'address, 0.5 ) ;
>     Result := function_0 ( test2'address, 0.5 ) ;




  reply	other threads:[~2007-09-03 21:39 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-03  8:47 urgent question - generics shoshanister
2007-09-03  9:14 ` Pascal Obry
2007-09-03  9:28   ` shoshanister
2007-09-03  9:58     ` Dmitry A. Kazakov
2007-09-03 10:19       ` shoshanister
2007-09-03 10:48     ` Markus E L
2007-09-03 13:41     ` Pascal Obry
2007-09-03 14:08       ` Niklas Holsti
2007-09-03 14:44         ` Pascal Obry
2007-09-03 15:01         ` Dmitry A. Kazakov
2007-09-03 14:36       ` Jean-Pierre Rosen
2007-09-03 16:46       ` shoshanister
2007-09-03 19:58         ` Georg Bauhaus
2007-09-03 10:23 ` anon
2007-09-03 10:42   ` Niklas Holsti
2007-09-03 10:58     ` shoshanister
2007-09-03 11:04       ` Georg Bauhaus
2007-09-03 11:06         ` shoshanister
2007-09-03 12:00           ` Georg Bauhaus
2007-09-03 11:24     ` anon
2007-09-03 11:36       ` shoshanister
2007-09-03 13:01         ` anon
2007-09-03 16:35           ` shoshanister
2007-09-04  0:38             ` anon
2007-09-04  6:38               ` Georg Bauhaus
2007-09-05  3:47                 ` anon
2007-09-05 10:11                   ` Georg Bauhaus
2007-09-05 12:36                     ` To Georg Bauhaus anon
2007-09-05 13:50                       ` Keep slang words in describing Ada programming? (was: To Georg Bauhaus) Georg Bauhaus
2007-09-05 14:40                         ` To new TROLL named Georg Bauhaus anon
2007-09-05 18:10                           ` Georg Bauhaus
     [not found]                           ` <op.tx7g6crr5afhvo@dogen>
2007-09-06  2:54                             ` anon
2007-09-06  9:20                               ` Markus E L
2007-09-06  6:15                             ` Dirk Heinrichs
2007-09-06  9:18                             ` Markus E L
2007-09-05 11:37                   ` urgent question - generics Markus E L
2007-09-03 13:27         ` Ludovic Brenta
2007-09-03 13:18       ` Markus E L
2007-09-03 10:56   ` Markus E L
2007-09-05  3:49     ` Troll -- Markus E L anon
2007-09-05 11:35       ` Markus E L
2007-09-03 16:18   ` urgent question - generics tmoran
2007-09-03 21:39     ` anon [this message]
2007-09-03 11:39 ` gautier_niouzes
2007-09-03 11:59   ` shoshanister
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox