comp.lang.ada
 help / color / mirror / Atom feed
From: "Alejandro R. Mosteo" <alejandro@mosteo.com>
Subject: Re: Limited type in generic package causes double free or corruption
Date: Thu, 29 Sep 2016 10:12:06 +0200
Date: 2016-09-29T10:12:06+02:00	[thread overview]
Message-ID: <nsiicc$4la$1@dont-email.me> (raw)
In-Reply-To: <bbd1a304-0349-4e79-a712-7a6ac36ec156@googlegroups.com>

On 28/09/16 20:41, onox wrote:

> If Tree is tagged (which it is), doesn't that mean Ada uses copy-by-reference instead of copy-by-value. Or am I mixing things up here?

Copy is never by reference in Ada (other than when explicitly using 
access types, of course). You're perhaps thinking of the 
parameter-passing mechanism? That's indeed by reference for tagged types 
(although for the programmer the allowed operations are as per the 
in/out mode as usual).

  parent reply	other threads:[~2016-09-29  8:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-28 13:25 Limited type in generic package causes double free or corruption onox
2016-09-28 16:06 ` Dmitry A. Kazakov
2016-09-28 16:20 ` Jeffrey R. Carter
2016-09-28 18:41   ` onox
2016-09-28 19:51     ` Jeffrey R. Carter
2016-09-29  8:12     ` Alejandro R. Mosteo [this message]
2016-09-28 17:27 ` Anh Vo
2016-09-28 17:34 ` AdaMagica
2016-09-28 21:42   ` Randy Brukardt
replies disabled

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