comp.lang.ada
 help / color / mirror / Atom feed
From: "Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr>
Subject: Re: basic questions on using Ada arrays
Date: Tue, 26 Oct 2010 04:20:35 +0200
Date: 2010-10-26T04:20:35+02:00	[thread overview]
Message-ID: <op.vk5vglycule2fv@garhos> (raw)
In-Reply-To: i8p2fr$11s$1@munin.nbi.dk

Le Sat, 09 Oct 2010 08:35:37 +0200, Randy Brukardt <randy@rrsoftware.com>  
a écrit:
> Using the extended return does simplify the code and possibly improves  
> the
> performance as well (by eliminating a copy of the array).

Already discussed last year. This may be an optimization hint for some  
compilers, as other compilers may apply the same optimization even in the  
lack of this extended return statement (it is related to avoiding copy,  
but this semantic formally apply to limited type only). This is compiler  
specific, unless Ada 2012 changed this to make it the standard semantic.


-- 
Si les chats miaulent et font autant de vocalises bizarres, c’est pas pour  
les chiens.



  reply	other threads:[~2010-10-26  2:20 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-06 15:43 basic questions on using Ada arrays Nasser M. Abbasi
2010-10-06 16:17 ` Pascal Obry
2010-10-06 16:22 ` Jacob Sparre Andersen
2010-10-07  1:55   ` Keith Thompson
2010-10-08  0:04     ` Randy Brukardt
2010-10-08 14:47       ` Jacob Sparre Andersen
2010-10-09  6:35         ` Randy Brukardt
2010-10-26  2:20           ` Yannick Duchêne (Hibou57) [this message]
2010-10-06 17:03 ` Jeffrey Carter
2010-10-06 19:54 ` Simon Wright
2010-10-08  8:02 ` Alex Mentis
replies disabled

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