comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Access types to records containing strings
Date: Tue, 15 Feb 2005 14:20:01 +0100
Date: 2005-02-15T14:20:01+01:00	[thread overview]
Message-ID: <1dmtgej543i14$.1g4oh6v2pces.dlg@40tude.net> (raw)
In-Reply-To: 344d0fee.0502150417.39d1d782@posting.google.com

On 15 Feb 2005 04:17:13 -0800, Xavier Serrand wrote:

> Why no use pointer to string !!

Pointers is the last resort choice in all cases...

> type T_Ptr_String is access String;
> 
> And now your strings can have the length you want ... but you should
> define function to construct your strings tha way (make something like
> a class in a package and use it)
> 
> It should be as or more flexible than the unbounded strings...

It is what unbounded strings already do. Additionally you will need to make
List_Object controlled (to control destruction), which might be
undesirable.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  reply	other threads:[~2005-02-15 13:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-29  8:58 Access types to records containing strings Stefan Merwitz
2005-01-29  9:32 ` Martin Krischik
2005-01-29 10:03 ` Dmitry A. Kazakov
2005-02-15 12:17   ` Xavier Serrand
2005-02-15 13:20     ` Dmitry A. Kazakov [this message]
2005-02-15 16:18       ` Matthew Heaney
replies disabled

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