How to compile a Block from a string ...

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

How to compile a Block from a string ...

GLASS mailing list

Today seems to be the day for wishes and questions.


How can I do this in Gemstone/S ?

| aString |

aBlockString := '[ : each | each isOlderThanMe ]'.

aBlock :=   "how to create a BlockClosure from a string" ?

arrayOfObject select: aBlock


_______________________________________________
Glass mailing list
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass
Reply | Threaded
Open this post in threaded view
|

Re: How to compile a Block from a string ...

GLASS mailing list

 aString evaluate

Or.. to compile on a target object: 
  
aString
    evaluateInContext: anObject
    symbolList: GsSession currentSession symbolList






On Tue, May 24, 2016 at 8:42 AM, Marten Feldtmann via Glass <[hidden email]> wrote:

Today seems to be the day for wishes and questions.


How can I do this in Gemstone/S ?

| aString |

aBlockString := '[ : each | each isOlderThanMe ]'.

aBlock :=   "how to create a BlockClosure from a string" ?

arrayOfObject select: aBlock


_______________________________________________
Glass mailing list
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass




--

_______________________________________________
Glass mailing list
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass
Reply | Threaded
Open this post in threaded view
|

Re: How to compile a Block from a string ...

GLASS mailing list

Thanks ... pretty simple ... .-)

Marten

Mariano Martinez Peck <[hidden email]> hat am 24. Mai 2016 um 15:20 geschrieben:


 aString evaluate

Or.. to compile on a target object: 
  
aString
    evaluateInContext: anObject
    symbolList: GsSession currentSession symbolList






On Tue, May 24, 2016 at 8:42 AM, Marten Feldtmann via Glass <[hidden email]> wrote:

Today seems to be the day for wishes and questions.


How can I do this in Gemstone/S ?

| aString |

aBlockString := '[ : each | each isOlderThanMe ]'.

aBlock :=   "how to create a BlockClosure from a string" ?

arrayOfObject select: aBlock


_______________________________________________
Glass mailing list
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass




--

_______________________________________________
Glass mailing list
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass