On Sun, Aug 26, 2012 at 10:02 PM, Steven D'Aprano <steve+comp.lang.pyt...@pearwood.info> wrote: > On Sun, 26 Aug 2012 16:22:05 +1000, Chris Angelico wrote: > >> On Sun, Aug 26, 2012 at 3:45 PM, Evan Driscoll <drisc...@cs.wisc.edu> >> wrote: >>> Third, and more wackily, you could technically create a C >>> implementation that works like Python, where it stores variables (whose >>> addresses aren't taken) in a dict keyed by name, and generates code >>> that on a variable access looks up the value by accessing that dict >>> using the name of the variable. >> >> That would be a reasonable way to build a C interactive interpreter. > > No it wouldn't. Without fixed addresses, the language wouldn't be able to > implement pointers. C without pointers isn't C, it is something else. > Possibly called Python :)
The insertion of a single rule will do it. Let it stand that &x is the string "x" and there you are, out of your difficulty at once! Okay, that may be a bit of a fairy tale ending and completely illogical. ChrisA -- http://mail.python.org/mailman/listinfo/python-list