From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,efc9f994d31d0d5e X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!s13g2000prd.googlegroups.com!not-for-mail From: Lucretia Newsgroups: comp.lang.ada Subject: Re: Limited initialization for non-limited types Date: Wed, 26 Mar 2008 16:00:15 -0700 (PDT) Organization: http://groups.google.com Message-ID: <20fcd83b-5ad6-4c1f-af13-ec03816ef10b@s13g2000prd.googlegroups.com> References: NNTP-Posting-Host: 90.194.162.36 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1206572415 9451 127.0.0.1 (26 Mar 2008 23:00:15 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 26 Mar 2008 23:00:15 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: s13g2000prd.googlegroups.com; posting-host=90.194.162.36; posting-account=L2-UcQkAAAAfd_BqbeNHs3XeM0jTXloS User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.8.1.12) Gecko/20080207 Ubuntu/7.10 (gutsy) Firefox/2.0.0.12,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:20595 Date: 2008-03-26T16:00:15-07:00 List-Id: On Mar 26, 1:26 pm, Eric Hughes 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.