[squeak-dev] Fun with spock (NativeBoost FFI)

Igor Stasenko siguctua at gmail.com
Mon May 14 01:01:54 UTC 2012


On 14 May 2012 01:39, Lawson English <lenglish5 at cox.net> wrote:
> On 5/13/12 3:49 PM, Igor Stasenko wrote:
>>
>> On 14 May 2012 00:03, Lawson English<lenglish5 at cox.net>  wrote:
>>>
>>> So...
>>>
>>>
>>> What can be done to better integrate such libraries? I browsed the Parser
>>> and other classes but didn't understand what I was seeing well enough to
>>> figure out how to begin.
>>>
>> See SqNumberParser.
>> this is the guy who used by Parser to parse number literals.
>>
>>
>
> Thanks.

keep in mind that the instance of those numbers from GMP library is kept in
external memory. that means if you save an image with it, all of them
will become invalid.
that, in own turn, makes them pretty useless as literals, unless you
will be using some intermediate form
to keep them and convert on request, i.e..

pi
  ^ '3.14159265358979323846264338327950288419716939937510' asGMPFloat


-- 
Best regards,
Igor Stasenko.


More information about the Squeak-dev mailing list