Inherit this:
class A { private int x = this_program==A?0:lambda(){ error("MEEP\n"); return 1; }(); }
/ Martin Nilsson (saturator)
Previous text:
2004-02-05 01:04: Subject: Re: Object comparision in C module
Maybe. Just don't forget to include final `->, `->=, `[] and `[]= too. But I noticed that this works:
class A { final int f() {return 1;} }
class B { private inherit A; }
class C { inherit B; int f() {return 2;} }
int main() { werror ("%O\n", C()->f()); }
And get_storage for A in C would still work here.
/ Martin Stjernholm, Roxen IS