Flavio Etrusco wrote:
> On 6/3/06, Al Boldi wrote:
>> In the fpc-rtl there is something like this:
>>
>> procedure TObject.Free;
>> begin
>> if self<>nil then self.destroy;
>> end;
>>
>> Does this make sense? i.e. How is it possible for self to be nil?
>
> 'Self' isn't a global variable associated with the method, it's simply
> a parameter passed implicitly to the method.
This would imply, that we are executing the class method instead of the
object method.
Does FPC have a switch to disallow executing class/definition methods, and
only allow executing object/instance methods?
Thanks!
--
Al
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives