[E-Lang] E bug?

steve jenson stevej@sieve.net
Sat, 20 Oct 2001 01:56:32 -0700


Scott Jaderholm and I were playing with Elmer earlier tonight and
ran into the following issue:

[In an Elmer session running 8.10alpha1]

? class carMaker(name) :any {
>    var xLocation := 0
>    var yLocation := 0
>    def car {
>        to moveTo(x,y) {
>            xLocation := x
>            yLocation := y
>        }
>        to getX() :any {xLocation}
>        to getY() :any {yLocation}
>        to getName() :any {name}
>    } 
>}
# value: <carMaker>

? def steveCar := carMaker("StevesCar")
# problem: <NoSuchMethodException: <EImplByProxy:<carMaker>> run/1>
#
#   <carMaker>("StevesCar")
#   <interactive interp> evalPrint(e`def steveCar :any := carMaker run("StevesCar")`)


I pulled this code directly from E in a Walnut, so something tells me
that this is incorrect behavior. Will somebody please hit me with the
Brick of Knowledge(tm)?

thanks,
steve

-- 
steve jenson <stevej@sieve.net> http://sieve.net/
PGP fingerprint: 79D0 4836 11E4 A43A 0179  FC97 3AE2 008E 1E57 6138