comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Design help
Date: Tue, 13 Mar 2007 17:22:09 -0500
Date: 2007-03-13T17:22:09-05:00	[thread overview]
Message-ID: <et783i$2if$1@jacob-sparre.dk> (raw)
In-Reply-To: 1v79s2t3fjrxu.14pyinp46ngmp.dlg@40tude.net

"Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> wrote in message
news:1v79s2t3fjrxu.14pyinp46ngmp.dlg@40tude.net...
...
> Because attribute is not limited the compiler would generate assignment as
> a shallow copy. That might get quite dangerous with pointers. Either it
has
> to be limited or strings need to be by-value (or by-reference counted
smart
> pointers).

Or controlled types with an appropriate Adjust routine. (This is the option
I most likely would use). The stream attributes don't include the tag, so
they wouldn't cause any additional trouble over the untagged versions.

                   Randy.





  parent reply	other threads:[~2007-03-13 22:22 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-13  0:50 Design help Carroll, Andrew
2007-03-13  2:48 ` Randy Brukardt
2007-03-13  8:52 ` Stuart
2007-03-13  9:40 ` Dmitry A. Kazakov
2007-03-13 20:18   ` Simon Wright
2007-03-13 22:22   ` Randy Brukardt [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-03-26 14:56 Carroll, Andrew
2007-03-09 22:43 Carroll, Andrew
2007-03-09 23:07 ` Simon Wright
2007-03-10  1:00 ` Jeffrey R. Carter
2007-03-10  4:40 ` Steve
2007-03-10 13:38 ` Ludovic Brenta
2007-03-17 20:34 ` Michael Erdmann
replies disabled

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