On Mar 18, 2010, at 8:56 PM, Steve Schveighoffer wrote: > I fixed some issues with unittests, and found a bug in the object module (due > to unittest failing!). The bug isn't too critical, since nobody is using > clear yet, but if you do create a new release (Don seems to have issues with > DLL stuff), then it would be good to include it. > > http://www.dsource.org/projects/druntime/changeset/270 > > Note that a unittest still fail on the src/unittest.d file, but I'm not sure > that test is valid, it's just over a year old. The offending line is: > > GC.enable(); > > Apparently, you can't enable unless it was previously disabled. Is this > correct?
It's a matter of preference, I suppose. I like requiring operations like this to be matched, so it's invalid to call disable() twice and enable() three times. To me, this indicates a logic error in the code. _______________________________________________ dmd-beta mailing list [email protected] http://lists.puremagic.com/mailman/listinfo/dmd-beta
