comp.lang.ada
 help / color / mirror / Atom feed
From: Lucretia <lucretia9@lycos.co.uk>
Subject: Re: Limited initialization for non-limited types
Date: Wed, 26 Mar 2008 16:00:15 -0700 (PDT)
Date: 2008-03-26T16:00:15-07:00	[thread overview]
Message-ID: <20fcd83b-5ad6-4c1f-af13-ec03816ef10b@s13g2000prd.googlegroups.com> (raw)
In-Reply-To: b481036a-41ee-4fc5-a0d0-c73cfef60234@s19g2000prg.googlegroups.com

On Mar 26, 1:26 pm, Eric Hughes <eric....@gmail.com> wrote:
> Is there any way of getting in-place initialization for non-limited
> objects?  This would be similar to that for limited types as specified
> in ARM05/7.5(8.1/2).

I didn't read your entire post as it's not necessary.

Anyway, it makes sense to do in place initialisation for limited types
as they cannot be copied, therefore a return statement that copies the
object just doesn't make sense whereas one which copies a non-limited
type does.

Obviously there is overhead in the non-limited case but what you have
to understand is that in the limited case it's more semantics and
making sure that the language doesn't create copies for them.

Luke.



  parent reply	other threads:[~2008-03-26 23:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-26 13:26 Limited initialization for non-limited types Eric Hughes
2008-03-26 14:02 ` Robert A Duff
2008-03-27  0:07   ` Eric Hughes
2008-03-26 15:08 ` Dmitry A. Kazakov
2008-03-26 22:13 ` Randy Brukardt
2008-03-27  3:25   ` Eric Hughes
2008-03-28  6:56     ` Randy Brukardt
2008-03-28 15:25       ` Eric Hughes
2008-03-28 21:53         ` Randy Brukardt
2008-03-28 23:37           ` Eric Hughes
2008-04-02  3:00         ` Eric Hughes
2008-03-26 23:00 ` Lucretia [this message]
2008-03-28 11:23 ` Martin Krischik
2008-03-28 15:47   ` Eric Hughes
2008-04-02  4:06 ` Eric Hughes
replies disabled

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