[fpc-pascal] "class" methods for objects
Michael Van Canneyt
michael at freepascal.org
Fri Jul 16 12:46:18 CEST 2010
On Fri, 16 Jul 2010, Reimar Grabowski wrote:
> On Fri, 16 Jul 2010 10:48:19 +0200 (CEST)
> Michael Van Canneyt <michael at freepascal.org> wrote:
>
>> Var
>> O : MyObject;
>>
>> begin
>> O.MySomething;
>> end.
> Interesting that you can call them on not initialized objects.
> I always assumed that they had to be called in a static way:
>
> begin
> MyObject.MySomething;
> end.
>
> Always learning something new.
One is never too old to learn :-)
Michael.
More information about the fpc-pascal
mailing list