[Jprogramming] gl2.ijs and object constructor

'Jon Hough' via Programming programming at jsoftware.com
Wed Sep 6 08:34:48 UTC 2017


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


More information about the Programming mailing list