[Grace-core] finally {return}

Michael Homer mwh at ecs.vuw.ac.nz
Tue Jun 23 17:30:26 PDT 2015


On Wed, Jun 24, 2015 at 11:36 AM, James Noble <kjx at ecs.vuw.ac.nz> wrote:
> The X Y example?  I don’t see the same block returning twice there?
Have a third (and hopefully last) one then:
    method baz {
        go {
            return 1
        } and {
            return 2
        }
    }
    method go(a) and (b) {
        try {
            a.apply
        } finally {
            b.apply
        }
    }
    print(baz)
What should it do?
-Michael



More information about the Grace-core mailing list