[prev in list] [next in list] [prev in thread] [next in thread] 

List:       squeak-beginners
Subject:    Re: [Newbies] Closure support
From:       "K. K. Subramaniam" <subbukk () gmail ! com>
Date:       2009-10-30 17:38:36
Message-ID: 200910302256.36767.subbukk () gmail ! com
[Download RAW message or body]

On Friday 30 October 2009 09:29:16 pm Andy Burnett wrote:
> What does the inner 'block' in [:n | [n]] actually do?
A block is just a list of bytecodes - an anonymous method. When the 'value' 
message is sent to a block, the list is evaluated and the result is returned. 
In this case, the value of n (or n*10 in your second example).

HTH .. Subbu
_______________________________________________
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic