[Grace-core] minigrace oddness

Michael Homer mwh at ecs.vuw.ac.nz
Tue Jul 1 14:56:56 PDT 2014


On Wed, Jul 2, 2014 at 9:51 AM, Andrew P. Black <black at cs.pdx.edu> wrote:
>
> On 30 Jun 2014, at 2:19, James Noble <kjx at ecs.vuw.ac.nz> wrote:
>
>> But this means that the syntatic form of a message request "myname.foo"
>> *isn't* a "normal" request when myname is one of these nested names,
>> it has to have the semantics of an "outer" request.
>> That's confusing (although a further syntax would be to force people to write
>> outer(myname) or outer.myname which have the virtue of not looking like
>> normal method requests
>
> Why isn’t an outer request a “normal” method request?
    def obj = object {
        method foo is confidential { 1 }
        object {
            outer.foo // OK
            obj.foo // Not OK
        }
    }
-Michael



More information about the Grace-core mailing list