On Tue, Dec 9, 2008 at 11:08 AM, Daniel White <[EMAIL PROTECTED]> wrote:
>> That would be a bad idea.  Then how would you do manual memory
>> management in the few cases that absolutely require it?
>
> Two ways. Either:
>
> a: being able to lock the variable so that the garbage collector
> can't touch it until you unlock it.

Why not just use GC-allocated memory and use addRoot then?

> b: Using a slightly different version of malloc (say 'mallocl') which again,
> makes it shielded against the garbage collector's wrath.

At which point you're back to the same situation as we have currently.

Reply via email to