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?
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal