[Info-vax] Strings, was: Re: Whither VMS?

Simon Clubley clubley at remove_me.eisner.decus.org-Earth.UFP
Tue Oct 6 07:13:47 EDT 2009


On 2009-10-05, JF Mezei <jfmezei.spamnot at vaxination.ca> wrote:
> Re: C and buffer overflows.
>
> Is there a language which keeps 2 values for each string: amount
> allocated and amount currently in use ?
>

Yes, Ada.

You have a range of string data types, so you can choose which one
best matches your requirements. One of the string data types Ada provides
is called Bounded String:

http://www.adaic.org/standards/95lrm/html/RM-A-4-4.html

If you can put to one side the US military origins of Ada, it's actually
a nice language to work with.

Simon.

-- 
Simon Clubley, clubley at remove_me.eisner.decus.org-Earth.UFP
Microsoft: Bringing you 1980's technology to a 21st century world



More information about the Info-vax mailing list