On further testing, I found previous code faulty.
Basic idea is the same but instead of redefining inside subclass

pbc_create_pbc_=: create_pbc_
pbc_destroy_pbc_=: destroy_pbc_

it should redefine "create" and "destroy" inside the parent class

coclass 'pbc'

pbc_create=: create=:
....
)

pbc_destroy=: destroy=: codestroy

Otherwise the object "pbc" rather than the object created with template "pbc" 
is referenced.


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to