[Glass] Compiler interface ...

Dale Henrichs via Glass glass at lists.gemtalksystems.com
Wed Nov 12 09:47:05 PST 2014


On Wed, Nov 12, 2014 at 9:45 AM, Dale Henrichs <
dale.henrichs at gemtalksystems.com> wrote:

>
>
> On Wed, Nov 12, 2014 at 4:27 AM, itlists at schrievkrom.de via Glass <
> glass at lists.gemtalksystems.com> wrote:
>
>> I would like to do the following:
>>
>> [ :a :b :c | a + b + c ]
>>
>>
>> How can I compile a string like "[ :a :b :c | a + b + c ]" in Gemstone
>> as a compiled method and store it in the database.
>>
>
> The following will produce a compiled method (GsNMethod instance):
>
>    '[:a :b :c | a + b + c]' _compileInContext: nil symbolList: SymbolList
> new oldLitVars: nil environmentId: 0
>

nil can be used as an arg to symboList: so th eabove should have been:

   '[:a :b :c | a + b + c]' _compileInContext: nil symbolList: nil
oldLitVars: nil environmentId: 0

Dale
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20141112/388cadcf/attachment.html>


More information about the Glass mailing list