I was browsing the OpenGL addon, gl2.ijs, and in the first few lines is this:

   coclass 'jgl2'
   
   create=: destroy=: [:


What does this do? And what is it achieving, and why is it desired? It seems to 
prevent object instantiation:

A=: '' conew 'jgl2'  NB. error

But what is the benefit of doing this? And why not just use a locale, i.e.  
cocurrent 'jgl2' ?

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

Reply via email to