question about public class
hi, why doesnt work the following code (bus error on osx): public class wx5 { static Envelope breath; } wx5.breath => blackhole; i want to use the public class for global control variables. the following does the same as the fragment above - but i have to create a dummy object: public class wx5 { static Envelope breath => blackhole; } wx5 dummy; micha
Greetings Micha et al, Static member variables are currently broken and have to be initialized separately. for example: public class X { // due to being broken, e is actually null here static Envelope e; } // assign new Envelope to e; connect it to blackhole new Envelope @=> X.e => blackhole; This has been documented but perhaps not clearly. Our apologies. We hope to have this fixed very soon. Best, Ge! On Thu, 5 Jan 2006, michael breitenbach wrote:
hi, why doesnt work the following code (bus error on osx):
public class wx5 { static Envelope breath; } wx5.breath => blackhole;
i want to use the public class for global control variables. the following does the same as the fragment above - but i have to create a dummy object:
public class wx5 { static Envelope breath => blackhole; } wx5 dummy;
micha
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
participants (2)
-
Ge Wang
-
michael breitenbach