comp.lang.ada
 help / color / mirror / Atom feed
From: Samuel Tardieu <sam@rfc1149.net>
Subject: Re: smart pointer dangerous (no -> operator)
Date: Sun, 18 Jan 2009 13:21:46 +0100
Date: 2009-01-18T13:25:02+01:00	[thread overview]
Message-ID: <874ozwby91.fsf@willow.rfc1149.net> (raw)
In-Reply-To: gkpluq$vda$1@online.de

>>>>> "Oliver" == Oliver Kowalke <oliver.kowalke@gmx.de> writes:

Oliver> - returning it via access type :
Oliver>      function Get(Pointer : Smart_Pointer) return Access_Object;

Why not use "return access Object" to get an anonymous access type,
on which Unchecked_Deallocation cannot be called without jumping
through hoops?

  Sam
-- 
Samuel Tardieu -- sam@rfc1149.net -- http://www.rfc1149.net/



      parent reply	other threads:[~2009-01-18 12:21 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-16 10:04 smart pointer dangerous (no -> operator) Oliver Kowalke
2009-01-16 11:09 ` Dmitry A. Kazakov
2009-01-16 11:42   ` Georg Bauhaus
2009-01-16 12:43     ` Dmitry A. Kazakov
2009-01-16 21:21     ` Maciej Sobczak
2009-01-17 19:07       ` Georg Bauhaus
2009-01-16 11:46   ` Oliver Kowalke
2009-01-16 12:45     ` Dmitry A. Kazakov
2009-01-17  0:43   ` Brian Drummond
2009-01-17  9:28     ` Dmitry A. Kazakov
2009-01-16 20:08 ` Tero Koskinen
2009-01-16 21:16   ` Maciej Sobczak
2009-01-18 12:21 ` Samuel Tardieu [this message]
replies disabled

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