2010/9/23 Henrik Johansen <henrik.s.johansen@veloxit.no>:
On Sep 23, 2010, at 4:03 07PM, Stéphane Ducasse wrote:
igor
May be a layer for people that are not fluent with assembly would help. Make the path easy from FFI writing.
It is already, RTM :) http://code.google.com/p/nativeboost/wiki/NBFnSpecParser
Get some patterns so that people can learn by following patterns.
Oh, yeah.. see. I was showing an example how to implement own primitive using NativeBoost. Of course, an FFI API is there, and doing all the magic under the hood, so you dont have to know any assemler voodo: releaseDC: hdc <primitive: #primitiveNativeCall module: #NativeBoostPlugin> ^ NBFFICallout stdcall: #( int ReleaseDC ( HWND self , " handle to window" HDC hdc " handle to DC " )) module: #user32 the above is an FFI call to external function ReleaseDC, which can be found in 'user32.dll' windoze module.
Stef
Cheers, Henry _______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- Best regards, Igor Stasenko AKA sig.