--------------------------------------------------------
class foo {
#if 1
protected int bar; // Does not work (and is a bug)
#else
int bar; // Does work
#endif
this_program other;
protected void create() {
other = this;
other->bar = 1;
}
}
object x = foo();
--------------------------------------------------------
This gives a runtime error which seems incorrect to me.
Flipping the #if causes it to run flawlessly.
Is this a problem in Pike, or are my expectations too high?
--
Stephen.