comp.lang.ada
 help / color / mirror / Atom feed
From: Victor Porton <porton@narod.ru>
Subject: If a routine should return two results, how should it be done?
Date: Sat, 26 Jul 2014 21:00:10 +0300
Date: 2014-07-26T21:00:10+03:00	[thread overview]
Message-ID: <lr0qb7$549$1@speranza.aioe.org> (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

             reply	other threads:[~2014-07-26 18:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-26 18:00 Victor Porton [this message]
2014-07-26 18:53 ` If a routine should return two results, how should it be done? 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
replies disabled

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