broken import gcstats in dmd-v2.023

sa sa at nowhere.com
Thu Jan 15 15:09:15 PST 2009


and more fun:

previously I call: std.gc.getStats(...);

according to: http://digitalmars.com/d/2.0/changelog.html#new2_020
from 	to
std.gc.*() 	memory.gc_*()

I tried: memory.gc_getStats(gs);
it says: Error: undefined identifier memory

I tried: core.memory.gc_getStats(gs);
it says: Error: undefined identifier module memory.gc_getStats

I tried: core.memory.gc.getStats(gs);
it says: Error: undefined identifier module memory.gc

I tried: core.memory.getStats(gs);
it says: Error: undefined identifier module memory.getStats

Come on!!!!! is the release package really tested? or the doc accurate at all?


== Quote from sa (sa at nowhere.com)'s article
> the file is in dmd-v2.023/src/druntime/src/gc/basic/gcstats.d
> and declared: module gc.gcstats;
> However, if I do:
> import gc.gcstats;
> dmd says: module gcstats cannot read file 'gc/gcstats.d'
> if I do:
> import gcstats;
> dmd says: module gcstats cannot read file 'gcstats.d'
> So how do I import gcstats?




More information about the Digitalmars-d mailing list