Re: Modified Interpreter
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Jul 12, 2003
- 473 views
On Sat, 12 Jul 2003 13:48:14 +0400, Igor Kachan <kinz at peterlink.ru> wrote: >So, there is no problem with any transformations of this code. Good. Try this (on either standard Eu 2.4 or Matts): a.e: global integer z z=3D1 include b.e as b include c.e as c include z.e as d ?{z,b:z,c:z,d:z} b.e: global integer z z=3D2 include a.e as a include c.e as c include z.e as d ?{a:z,z,c:z,d:z} c.e: global integer z z=3D3 include a.e as a include b.e as b include z.e as d ?{a:z,b:z,z,d:z} z.e: global integer z z=3D4 include a.e as a include b.e as b include c.e as c ?{a:z,b:z,c:z,z} As expected (well, actually, I wasn't too sure about re-including the calling program, but I am now) this gives no errors and prints: {1,2,3,4} {1,2,3,4} {1,2,3,4} {1,2,3,4} Cool, huh? Regards, Pete PS I really quite like this example, you can run any of a.e, b.e, c.e, or z.e and get exactly the same result !