On Fri, 20 Jan 2006, Thomas Grill wrote:
that's not completely correct: the PD-like style would be to register the class (that's the actual CLR assembly) when loading it the first time. There, a static Main function could be called registering the methods. When creating the CLR object, the constructor is called, registering inlets and outlets. This has the advantage that the objects would be more lightweight (method table is needed only once per class, not per instance) and that loading is faster.
Wait. Does Davide mean the thing that constructs the objects or the thing that constructs the class itself? I seem to recall that in Java the latter would be called "static initializers" and would be written like "static{ blah };", right? What's the CLR-equivalent of that?
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju | Freelance Digital Arts Engineer, Montréal QC Canada