Thread overview
Disabling GC
Apr 20, 2005
Vladimir
Apr 20, 2005
Paul Bonser
Apr 20, 2005
Georg Wrede
Apr 24, 2005
Charlie
Apr 25, 2005
Vladimir
April 20, 2005
Hello All !
Does someone tried to use D without GC ? Do I need to recompile phobos to
disable GC ?
And does some language features such as dynamic arrays and AA rely on GC ?

-- 
          Vladimir
April 20, 2005
Vladimir wrote:
> Hello All !
> Does someone tried to use D without GC ? Do I need to recompile phobos to
> disable GC ?
> And does some language features such as dynamic arrays and AA rely on GC ?
> 

import std.gc;
...
disable();
// or
std.gc.disable(); // if you have something named disable already...
...


Don't know about the Dynamic array and AA stuff...I'd like to know myself...
-- 
-PIB

--
"C++ also supports the notion of *friends*: cooperative classes that
are permitted to see each other's private parts." - Grady Booch
April 20, 2005
Paul Bonser wrote:

>> Does someone tried to use D without GC ? Do I need to recompile phobos to
>> disable GC ?

> std.gc.disable(); // if you have something named disable already...
> ...

I don't think enabling/disabling is implemented yet in Phobos ?

But I do know that it is possible to recompile it, without GC.

--anders
April 20, 2005
Anders F Björklund wrote:
> Paul Bonser wrote:
> 
>>> Does someone tried to use D without GC ? Do I need to recompile phobos to
>>> disable GC ?
> 
> 
>> std.gc.disable(); // if you have something named disable already...
>> ...
> 
> 
> I don't think enabling/disabling is implemented yet in Phobos ?
> 
> But I do know that it is possible to recompile it, without GC.

I haven't looked at it, but I assume that with some tweaking anybody could do it.

What would be nice, is to have a disableGC.txt in the Phobos directory, explaining how to do it.

(It should actually be in the GC documentation, but, hey, one can't expect to get all the money in the world. :-) )
April 24, 2005
Just do an extern (C): main , and dont call gc_init();

Charlie
"Georg Wrede" <georg.wrede@nospam.org> wrote in message
news:4266768A.4040905@nospam.org...
> Anders F Björklund wrote:
> > Paul Bonser wrote:
> >
> >>> Does someone tried to use D without GC ? Do I need to recompile
> >>> phobos to
> >>> disable GC ?
> >
> >
> >> std.gc.disable(); // if you have something named disable already...
> >> ...
> >
> >
> > I don't think enabling/disabling is implemented yet in Phobos ?
> >
> > But I do know that it is possible to recompile it, without GC.
>
> I haven't looked at it, but I assume that with some tweaking anybody could do it.
>
> What would be nice, is to have a disableGC.txt in the Phobos directory, explaining how to do it.
>
> (It should actually be in the GC documentation, but, hey, one can't
> expect to get all the money in the world. :-) )


April 25, 2005
Charlie wrote:
> Just do an extern (C): main , and dont call gc_init();
Thanks !

> 
> Charlie
> "Georg Wrede" <georg.wrede@nospam.org> wrote in message
> news:4266768A.4040905@nospam.org...
>> Anders F BjЖrklund wrote:
>> > Paul Bonser wrote:
>> >
>> >>> Does someone tried to use D without GC ? Do I need to recompile
>> >>> phobos to
>> >>> disable GC ?
>> >
>> >
>> >> std.gc.disable(); // if you have something named disable already...
>> >> ...
>> >
>> >
>> > I don't think enabling/disabling is implemented yet in Phobos ?
>> >
>> > But I do know that it is possible to recompile it, without GC.
>>
>> I haven't looked at it, but I assume that with some tweaking anybody could do it.
>>
>> What would be nice, is to have a disableGC.txt in the Phobos directory, explaining how to do it.
>>
>> (It should actually be in the GC documentation, but, hey, one can't
>> expect to get all the money in the world. :-) )

-- 
          Vladimir