Raphael Crawford-Marks | 2 Apr 2004 04:12

1.9b bug

There's a bug in Object is-a-subclass.  I'm running breve 1.9b.

Code:

 <at> use Control.
 <at> use Mobile.

                                                                            
Controller testControl.

                                                                            
Control : testControl {
        + variables:
                obj (object).

                                                                            
        + to init:
                obj = 1 new MobileSubClass.

                                                                            
        + to iterate:
                if (obj is-a-subclass of "Mobile"):
                        die "Subclass Test Worked.".
}

                                                                            
Mobile : MobileSubClass {
        + to iterate:
                super iterate.
}

Output:

MobileSubClass (0x83c8120) method "get-type" called with uninitialized object
breve engine tack trace:
0) testControl (0x8395508) iterate (line 13 of "subclassTest.tz")
1) Object (0x83c8378) is-a-subclass (line 75 of "Object.tz")
... error in file "Object.tz" at line 79

--

-- 
Raphael Crawford-Marks
http://user-error.net
_______________________________________________
breve mailing list
breve <at> spiderland.org
http://www.spiderland.org/mailman/listinfo/breve


Gmane