comp.lang.ada
 help / color / mirror / Atom feed
From: comicfanzine@gmail.com
Subject: Use procedure(s) in a function ?
Date: Tue, 15 Dec 2015 12:29:17 -0800 (PST)
Date: 2015-12-15T12:29:17-08:00	[thread overview]
Message-ID: <fd00f511-987d-47a7-89e8-06c84e09b8c2@googlegroups.com> (raw)

Hi ;

Is it possible to use procedure(s) in a function ??

I Checked the A.R.M =  http://www.adaic.org/resources/add_content/standards/95lrm/ARM_HTML/RM-6-4.html

http://www.adaic.org/resources/add_content/standards/95lrm/ARM_HTML/RM-6-3.html

No examples about this....

If yes =

I'm trying to return a global variable's String value , and want to use the function later in a procedure .

The code =

function get_name return String 
is begin
Put_line("Your name?");
 Get(name); -- name is in "globals"
 put(name);
return name;
end get_name;

package globals 
is 
name : String(1..20) ;
end globals;

             reply	other threads:[~2015-12-15 20:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-15 20:29 comicfanzine [this message]
2015-12-15 22:20 ` Use procedure(s) in a function ? Simon Wright
2015-12-16  1:51   ` comicfanzine
2015-12-18  4:31     ` comicfanzine
replies disabled

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