comp.lang.ada
 help / color / mirror / Atom feed
* Array of Unbounded_String vs Indefinite_Vectors(Natural, String)
@ 2017-10-21 21:48 Victor Porton
  2017-10-22  0:51 ` Shark8
  2017-10-22 12:30 ` Victor Porton
  0 siblings, 2 replies; 7+ messages in thread
From: Victor Porton @ 2017-10-21 21:48 UTC (permalink / raw)


I need to develop an API which return a list of strings.

I have two possible design choices for the result type:

1. type T is array(Natural range <>) of Unbounded_String;

2. package V is new Ada.Containers.Indefinite_Vectors(Natural, String);

Which one of the two to choose?

The first has the advantage that it is a regular array not a fancy 
container. The second one has the advantage that the element type is String 
not a fancy Unbounded_String.

Please help me to make the choice!

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


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

end of thread, other threads:[~2017-11-06  4:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-21 21:48 Array of Unbounded_String vs Indefinite_Vectors(Natural, String) Victor Porton
2017-10-22  0:51 ` Shark8
2017-10-22 10:52   ` Victor Porton
2017-10-23 16:32     ` Shark8
2017-10-23 17:30       ` Jacob Sparre Andersen
2017-11-06  4:42       ` Robert Eachus
2017-10-22 12:30 ` Victor Porton

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