www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - broken import gcstats in dmd-v2.023

reply sa <sa nowhere.com> writes:
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?
Jan 15 2009
parent sa <sa nowhere.com> writes:
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 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?
Jan 15 2009