|
Archives
D Programming
digitalmars.Ddigitalmars.D.bugs digitalmars.D.dtl digitalmars.D.ide digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger D.gnu D C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript electronics |
digitalmars.D - Re: D Language 2.0
Andrei Alexandrescu Wrote:Why would having one chunk of code get checked for calls to the GC and another not be any more complicated than mixing malloc/free+add/removeRoot with normal GC? I'm beginning to wonder if I'm calling for something different than other people are. What I'm thinking of would have zero effect on the generated code, the only effect it would have is to cause an error when some code would normally attempt to invoke the GC. Jan 24 2010
Hello asd,Optional GC is in Objective-C already and it works great! NB: In this context by GC I mean automatic mark-sweep garbage collection and *not* refcouting. I'm ignoring here Cocoa's retain/release, because it's not directly relevant. There are 3 options: -no-gc. Like pure C - explicit manual memory management is used exclusively. Can't talk to GC code at all. (I don't recommend that for D). Jan 24 2010
|