Order of initialization

Michael O'Brien mob at mbedthis.com
Fri Apr 18 16:52:20 PDT 2008


I'm unsure how the class level initialization code should run:

Consider:


class Circle extends Shape {
     print("Circle")
}
class Shape {
     print("Shape")
}



The RI and ASC currently bomb on this due to the forward class  
reference, however, my understanding is that this is perfectly legal.

Now should the Circle initialization code run first because it is  
first in the file, or should Shape run first because it is a base class.

Should we see

Circle
Shape


or
Shape
Circle


Michael



More information about the Es4-discuss mailing list