comp.lang.ada
 help / color / mirror / Atom feed
* If a routine should return two results, how should it be done?
@ 2014-07-26 18:00 Victor Porton
  2014-07-26 18:53 ` Niklas Holsti
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Victor Porton @ 2014-07-26 18:00 UTC (permalink / raw)


If a routine should return two results, how should it be done?

1. procedure with two out arguments;

2. function with one out argument;

3. create specific record type for the result type of the function?

What are advantages and disadvantages of each variant?

-- 
Victor Porton - http://portonvictor.org

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-07-27 11:59 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-26 18:00 If a routine should return two results, how should it be done? Victor Porton
2014-07-26 18:53 ` Niklas Holsti
2014-07-26 18:57   ` Victor Porton
2014-07-26 19:21     ` Peter Chapin
2014-07-26 19:37       ` Dan'l Miller
2014-07-26 20:10     ` Shark8
2014-07-26 20:42 ` Victor Porton
2014-07-26 20:44   ` Victor Porton
2014-07-27 11:59 ` anon

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