Hi Nicolas / list,

 

I’m currently busying away with my new libs and have decided it might be better to combine a lot of my functions into groups using objects, so instead of having, say, seven functions oriented toward a certain task, I have one object with seven methods.  This would work well, because each of the seven functions are quite critical to each other and all require the same pointer reference to be passed to each, which I can hide using this method.  The questions I need to ask, though, are:

 

  1. What overheads does this create?  Ie.  By adding methods together in this way, am I merely adding pointer references to functions to this object, or should I consider leaving them all separate and handle all of this through haXe classes (assuming pure Neko users are intelligent enough to do without them J )

 

  1. Is there a simple way through the Neko api to tag this object for quick type comparison in the same way that abstract pointers can be checked?

 

Thanks,

Lee

 

 

-- 
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to