[Grace-core] finally {return}
Michael Homer
mwh at ecs.vuw.ac.nz
Tue Jun 23 16:29:13 PDT 2015
On Tue, Jun 23, 2015 at 10:08 PM, James Noble <kjx at ecs.vuw.ac.nz> wrote:
>
>> On 23/06/2015, at 21:51pm, Michael Homer <Michael.Homer at ecs.vuw.ac.nz> wrote:
>>
>> Follow-up question: what should this code do?
>
> at a guess: raise an “you are attempting to return from a method invocation that has already returned” error
>
> same as this:
>
> var aBlock
>
> method setup {
> aBlock:= { return 42 }
> }
>
> setup
>
> aBlock.apply
Ok, now have a look at the first example again...
-Michael
More information about the Grace-core
mailing list