Signals and Slots in D
Lionello Lunesu
lio at lunesu.remove.com
Fri Sep 29 08:28:15 PDT 2006
Thomas Kuehne wrote:
> -----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.
Wait.. "and updated by a moving GC"... got it.. :S
More information about the Digitalmars-d
mailing list