On 22 October 2012 00:31, Igor Stasenko <siguctua@gmail.com> wrote:
Hi, Ciprian.
this is not going to work unless you specify the class to use (which contains such instance variables), which will make signatures even more uglier, something like:
function: aPoint <primitive: #primitiveNativeCall module: #NativeBoostPlugin> ^ self call: #( int function (int aPoint@Point:x, int aPoint@Point:y))
and that amount of mess beyond acceptance levels, to my taste :)
and even more than that, if you change the shape of a class (like remove instance variable or change their order), this method won't recompile automatically, means that next time you attempt to use it, you will crash the system, or get weird behavior. While if method sits in same class and accessing its instance variables, it is completely safe, because when you changing shape of a class, it will automatically recompile all its methods and therefore wipe generated code out. -- Best regards, Igor Stasenko.