Jacob Sparre Andersen wrote: > If you accept such a tradeoff, then simply instantiate > Ada.Strings.Bounded.Generic_Bounded_Length with a length of > maximum length of 255 characters, and you are done.
That is rampant waste of space. And it does nothing to reduce unneccessary copying. > > You need a way of specifying that only part of a type > > (array) is valid data. > > That would be nice, but I don't know if it is possible to do > it in a practical way. Since it can not be done without > changing the language definition, somebody (you?) will have > to write a suggestion of how it should be done. I presume > that the suggestion should include an example of how a > compiler could implement it. Check out the pragma mechanism. > > And it would help if the compiler became string aware. > > Which compiler? Ada includes a simple syntax for writing > string constants. What other "string awareness" do we need? Take a look at the internal representation of various strings and you should get a clue. Greetings, --- You are currently subscribed to gnatlist as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] For help visit http://www.lyris.com/help

