Re: A question about certain language features
- Posted by Kat <gertie at PELL.NET> Feb 11, 2002
- 606 views
On 12 Feb 2002, at 4:18, tone.skoda at siol.net wrote: > > Classes! > > include circle.e as circle > > circle circle1 > circle cirlce2 > > cirlce1.radius = 5 > circle1. x = 0 > circle1.y = 0 > > cirlce2.radius = 10 > circle2. x = 5 > circle2.y = 5 > > circle1.draw () > circle2.draw () > > code above would draw two differecnt circles. I wonder if you could write a Eu program that includes the interpreter as a class, and all the Eu language keywords as Eu.keyword(). Would this give us a clean exec(sequence) and pseudothreads? Kat