A question about moving GC
Max Samuha
maxter at i.com.ua_spamless
Thu Jun 8 00:11:54 PDT 2006
On Wed, 7 Jun 2006 22:11:52 +0000 (UTC), Unknown W. Brackets
<Unknown_member at pathlink.com> wrote:
>Of course, how foolish of me - so there's no worry about the garbage collector
>killing that in a threaded program either. Duh.
>
>-[Unknown]
>
>In article <e679ot$7e3$1 at digitaldaemon.com>, Walter Bright says...
>>Stewart Gordon wrote:
>>> Would it remain pinned indefinitely, until the C function exits, or
>>> until the program explicitly unpins it by some means?
>>
>>It's pinned because it's on the stack, just like pointers on the stack
>>for your D functions. The gc doesn't know the difference.
>
Thanks. It seems I can live with that for now. i can't help saying D
is very addictive. imho, the best C-like language i've had a chance to
try.
More information about the Digitalmars-d-learn
mailing list