Re: [Pharo-project] [squeak-dev] Question about FFI and constants

2009-09-30 Thread Hernán Morales Durand
Another alternative to what Andreas suggested is to reify in meaningful messages the constants, see senders of YAZODRFFILibrary>>odrCreate: in the Z3950 project at SqueakSource. Cheers, Hernán 2009/9/30 Mariano Martinez Peck : > Hi folks: I am calling to the OpenDBX library and this library uses

Re: [Pharo-project] [squeak-dev] Question about FFI and constants

2009-10-01 Thread Fernando olivero
Hi Mariano, what about the rule in Kent Beck Smalltalk best practices book, put magic numbers into a method. OpenDBUnix>>odbxErrBackend. ^ 1 OpenDBUnix apiError: handle number: OpenDBUnix odbxErrBackend. Or i you prefer also can code a mapping method like this one ( although the f