Question about FFI and constants

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Question about FFI and constants

Torsten Bergmann
Maybe you will use PoolDictionaries.

See pool/class "FFIConstants" in FFI package for
example. Check the class side #initialize method
where the values are assigned.

SharedPool subclass: #FFIConstants ...

It is used in ExternalFunction for example:

ExternalObject subclass: #ExternalFunction
        instanceVariableNames: 'flags argTypes'
        classVariableNames: 'FFIErrorMessages'
        poolDictionaries: 'FFIConstants'
        category: 'FFI-Kernel'

Bye
Torsten


BTW: Would be nice if Pharo will support scoping for
pools later, something in the like of
 
   Win32OLEConstants::S_OK
   Win32Constants::S_OK

--
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project