From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Warning: accessibility check failure with GNAT GPL 2013
Date: Mon, 28 Oct 2013 15:26:33 +0100
Date: 2013-10-28T15:26:33+01:00 [thread overview]
Message-ID: <tl10y112tmyq.2f1qzq62klj2.dlg@40tude.net> (raw)
In-Reply-To: 4395468b-93d3-45f4-8bc0-91cd646ff1d9@googlegroups.com
On Mon, 28 Oct 2013 06:49:30 -0700 (PDT), sangomarco@gmail.com wrote:
> function New_Thread return access Cyclic_Thread is
> begin
> return new Cyclic_Thread;
> end New_Thread;
The rule of thumb: you never return an anonymous access result allocated by
new.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2013-10-28 14:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-28 13:49 Warning: accessibility check failure with GNAT GPL 2013 sangomarco
2013-10-28 14:26 ` Dmitry A. Kazakov [this message]
2013-10-28 15:23 ` sangomarco
2013-10-28 15:49 ` Dmitry A. Kazakov
2013-10-28 16:05 ` sangomarco
2013-10-28 16:13 ` Georg Bauhaus
2013-10-28 17:31 ` Adam Beneschan
2013-10-31 1:28 ` 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