Re: A question about certain language features
- Posted by Irv Mullins <irvm at ellijay.com> Feb 12, 2002
- 600 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. Some time ago, when Dave Cuny was testing his Py interpreter, he sent me a version that allowed: include sprite.e as bart include sprite.e as lisa bart.image = "C:\bart.bmp" lisa.image = "C:\lisa.bmp" bart.loc = {0,0} lisa.loc = {100,200} IOW, allowing multiple instances of a single "object" declared in a single include file. This seemed to work great, and could have been very useful. Unfortunately, when I reported as much to Dave, he immediately removed that capability. Perhaps he saw a way that it would have caused trouble. Dave, when that happens at Microsoft, they just call it a "feature", and turn it over to marketing who convince the rest of us that we are going to like it :) Regards, Irv