Destructor nonsense on dlang.org
Steven Schveighoffer
schveiguy at yahoo.com
Thu May 24 08:17:04 PDT 2012
On Thu, 24 May 2012 11:04:06 -0400, Jacob Carlborg <doob at me.com> wrote:
> On 2012-05-24 16:53, Steven Schveighoffer wrote:
>
>> What I think we need is a dispose pattern for objects, like Tango has.
>
> Object.dispose in Tango is called on scope exit if the object is
> variable is declared "scope". "scope" is deprecated in D2.
>
We can easily hook that in object.clear, which any scoped library
implementation should be calling.
-Steve
More information about the Digitalmars-d
mailing list