[Grace-core] finally {return}

James Noble kjx at ecs.vuw.ac.nz
Tue Jun 23 03:08:37 PDT 2015


> 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





More information about the Grace-core mailing list