Hi. Today I was giving a lesson and I was trying something something like
this:

ByteString allInstances select: [ :aString | aString size > 1000  ]

 But sometimes, we want (not in this example) delegate the behavior to the
object, for example:

ByteString allInstances select: [ :aString | aString isTooBig ]

And then....I (actually, a classmate told me) realised that Symbol
understands value: too. So I can do this:

ByteString allInstances select: #isTooBig

and it also works :)

Interesting, isn't it ?

cheers

Mariano

ps: if everybody already know this, please forgive my completly ignorance

Reply via email to