trouble compiling Fiber example code from docs dmd linux v2.067.1

Carl Sturtivant via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Aug 6 13:21:36 PDT 2015


I took the example code from here,
http://dlang.org/phobos/core_thread.html#.Fiber
and wrapped the statements at the bottom inside main() and put 
import core.thread and std.stdio at the top, and the compiler 
gave me the following.

/usr/include/dmd/druntime/import/core/thread.d(3894): Error: 
static variable PAGESIZE cannot be read at compile time
fiberexample.d(8):        called from here: super.this(&this.run, 
PAGESIZE * 4LU)
/usr/include/dmd/druntime/import/core/thread.d(3871): Error: 
static variable PAGESIZE cannot be read at compile time

Help anyone?



More information about the Digitalmars-d-learn mailing list