[fpc-pascal] FPC class syntax was extended to support delphi code
Doug Chamberlin
dougchamberlin at earthlink.net
Wed Jan 13 20:20:46 CET 2010
David Emerson wrote:
> Doug Chamberlin wrote:
>> Class methods allow you to call the method without instantiating the
>> class first. For example, Result := TMyClass.MyClassFunction;
>
> Oh, that is so cool! I suppose that probably means that class methods
> can only reference class variables/methods/properties.
Yup!
Of course, there are pros and cons to all this. Our once simple,
straightforward language is not littered with "convenience" features
that are not necessary at all. For example, what is the big advantage of
class methods over simple functions and procedures?
--
Doug C.
-----
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