Below I make a class A and then a class B which inherits from A. I create an instance of B, then destroy B. But if I try to create another instance of B after calling destroy I get an error to do with A. Does anybody know what I am doing wrong?
Thanks, Matthew. cocurrent 'base' coclass 'A' create =: 3 : 0 X =: y ) destroy =: codestroy cocurrent 'base' coclass 'B' create =: 3 : 0 create_A_ y X =: 2*y ) destroy =: 3 : 0 destroy_A_ '' codestroy '' ) cocurrent 'base' b =: 1 conew 'B' X__b destroy__b '' b2 =: 2 conew 'B' NB. this line gives an error |value error: create_A_ | create_A_ y ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm