[Glass] Why this closure is not #isSimple ???

Mariano Martinez Peck via Glass glass at lists.gemtalksystems.com
Fri Nov 6 11:10:19 PST 2015


Hi,

'[ :co |
  | d |
  co collect: [  d := 0 ]  ]
' evaluate isSimple

Answers false and #_cost answers 2 (complex).
It seems related to the assignment of a temp var (defined inside the
closure... 'd' in my example)  from inside another closure ( [d := 0] in my
example)

Any idea why? Of course that is a dummy closure that I reduced from my
original one in order to the have the smaller reproducible closure to
illustrate my problem.

Thanks in advance,

-- 
Mariano
http://marianopeck.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20151106/f8b48b2b/attachment.html>


More information about the Glass mailing list