[fpc-pascal] "class" methods for objects

Reimar Grabowski reimgrab at web.de
Fri Jul 16 11:22:09 CEST 2010


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.

R.
-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



More information about the fpc-pascal mailing list