Signals and Slots in D
Thomas Kuehne
thomas-dloop at kuehne.cn
Fri Sep 29 07:01:13 PDT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Lionello Lunesu schrieb am 2006-09-29:
> Thomas Kuehne wrote:
>> Walter Bright schrieb am 2006-09-29:
>>> The problem in general with hiding pointers is that it'll break with a
>>> moving garbage collector. You could work around this by 'pinning' the
>>> objects, but pinning objects long term is a bad idea.
>>
>> How about an GC allocation area that isn't searched for valid pointers
>> but is still collected?
>
> Couldn't we use malloc/free + RAII for that? ...auto_ptr<>?
No. The trick is that this area is collected(and updated by a moving
GC), but isn't considered while looking for pointers into the "normal"
area.
Thomas
-----BEGIN PGP SIGNATURE-----
iD8DBQFFHTRkLK5blCcjpWoRAslCAJ4kmatooWOu9NkZP8DkAkhZyE4bQQCfUGYH
bZaJHOtnII3oKxnap7BL+JE=
=q6Fc
-----END PGP SIGNATURE-----
More information about the Digitalmars-d
mailing list