sslot 0.3 release
Lutger
lutger.blijdestijn at gmail.com
Wed Mar 28 12:31:16 PDT 2007
Frits van Bommel wrote:
> Lutger wrote:
>> Bill Baxter wrote:
>>>
>>> Sounds nice. Just curious -- what is it you require from dmd 1.10?
>>
>> dmd 1.10 provides std.gc.capacity, which can tell you if a block of
>> memory is allocated by the gc. I use this to check if a delegates
>> comes from an object (with the .ptr property), in which case the
>> signals hooks a delegate with notifyRegister on the object which is
>> called on destruction for auto disconnection.
>> I should have documented this btw.
>
> You realize that just because a block of memory is GC-allocated doesn't
> mean it's an Object? It could just as well be a struct, int, dynamic
> array data or whatever.
Yes of course. This block comes from the .ptr property of a delegate
which is already type checked, so there are just a few types left which
are unsafe to connect. That's why I said I should have documented it,
kinda stupid to leave this important information out...
More information about the Digitalmars-d-announce
mailing list