[Grace-core] finally {return}

Michael Homer mwh at ecs.vuw.ac.nz
Tue Jun 23 02:51:11 PDT 2015


On Tue, Jun 23, 2015 at 8:04 PM, Michael Homer <mwh at ecs.vuw.ac.nz> wrote:
> What should this code do?
Follow-up question: what should this code do?
    method bar {
        go { arg ->
            return arg
        }
    }
    method go(b) {
        try {
            b.apply "hello"
        } finally {
            b.apply "world"
        }
    }
    print(bar)
-Michael


More information about the Grace-core mailing list