Implicit context access

Tony Garnock-Jones tonyg at lshift.net
Mon Apr 11 02:57:23 PDT 2005


Brian Rice wrote:
> ...or "here", perhaps.

I like that. Direct, concise, precise, accurate.

>> "thisNamespace" seems initially pretty good, but maybe there are 
>> better suggestions. Any ideas?

What about some way of naming a context within an expression? For 
example (strawman):

   x doSomething.
   here (x doSomethingElse. x doSomethingWith: here).
   cc (x foo. cc return: 123).
   x blah.

where the rule is kind of

   NAME_CURRENT_NAMESPACE_EXPR := ID LPAREN EXPRSEQ RPAREN

and the ID is bound to the current context in the EXPRSEQ.

Tony
-- 
  [][][] Tony Garnock-Jones     | Mob: +44 (0)7905 974 211
    [][] LShift Ltd             | Tel: +44 (0)20 7729 7060
  []  [] http://www.lshift.net/ | Email: tonyg at lshift.net




More information about the Slate mailing list