comp.lang.ada
 help / color / mirror / Atom feed
* Ada 2012 : aliased parameters ?
@ 2011-03-28 11:47 Yannick Duchêne (Hibou57)
  2011-03-28 11:56 ` Dmitry A. Kazakov
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Yannick Duchêne (Hibou57) @ 2011-03-28 11:47 UTC (permalink / raw)


Hello,

I was looking at what the Ada 2012 reference looks like so far, and  
especially at all the “Extensions to Ada 2005” sections. In “Subprogram  
Declarations” there is such an extension.

     Quote from Ada 2012:

     Parameters can now be explicitly aliased, allowing parts of
     function results to designate parameters and forcing
     by-reference parameter passing.

I'm not sure I've understood. What was wrong with access type parameters ?  
I don't see a reason why aliased parameters may be required (and don't  
feel this can be clean). Well, why not in/out parameter for functions, as  
things like test-and-set are common idioms, but I really can't figure why  
this one in particular was required.

I may look at the related AI later, but it's long (so I will deffer it). A  
quick overview of good reasons from someone who know ?


-- 
Si les chats miaulent et font autant de vocalises bizarres, c’est pas pour  
les chiens.
“ c++; /* this makes c bigger but returns the old value */ ” [Anonymous]



^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2011-04-30 23:46 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-28 11:47 Ada 2012 : aliased parameters ? Yannick Duchêne (Hibou57)
2011-03-28 11:56 ` Dmitry A. Kazakov
2011-03-29  3:04   ` Randy Brukardt
2011-03-28 11:56 ` AdaMagica
2011-03-29 18:22   ` Florian Weimer
2011-03-29 18:34     ` Shark8
2011-03-29 19:35       ` Florian Weimer
2011-03-30  0:12     ` Randy Brukardt
2011-03-29  3:16 ` Randy Brukardt
2011-03-29  7:34   ` Maciej Sobczak
2011-03-30  0:09     ` Randy Brukardt
2011-03-30 19:44       ` Randy Brukardt
2011-04-23 18:47   ` Florian Weimer
2011-04-25  7:19     ` Randy Brukardt
2011-04-28 19:47       ` Florian Weimer
2011-04-28 23:54         ` Randy Brukardt
2011-04-30 18:32           ` Florian Weimer
2011-04-30 23:46             ` Randy Brukardt

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