At 08:19 AM 6/14/2008 +0200, Cesare Di Mauro wrote: >Assignament must work on the object's namespace, of course: > >def foo(a): > on a: > x += 1 > print x > will be equivalent to: > >def foo(a): > a.x += 1 > print a.x Er, you need a syntactic disambiguation here to distinguish attributes from locals or globals: def foo(a): on a: .x += 1 print .x Otherwise, this leads to all sorts of craziness. You'd also have to restrict what could be referenced in a nested "on" block, in order to avoid further ambiguities.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4