George Birbilis wrote:
Regarding the stuff I say below though, not sure what "self" contains
(at the someClassMethod code body) when you do
someInstance.someClassMethod() instead of someClass.someClassMethod().
Does it always contain the class self or the "someInstance"? (be it nil
or not). I'd expect the 2nd !
Since
- someInstance is of type 'TAClass' and someClass of type 'class of TAClass',
and
- self can have only one type (otherwise the compiler couldn't do much with it)
I'd conclude 'self' is always a class and never an instance for class methods.
Bram
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives