[fpc-pascal] method-definition

Hairy Pixels genericptr at gmail.com
Sat Dec 16 02:45:32 CET 2023



> On Dec 15, 2023, at 8:56 PM, Adriaan van Os via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
> 
> What complicates things, is that many conflicting rules have the same name in the Language Reference. For example, conceptually we have object-methods, record-methods, class-methods, interface-methods and objcclass-methods. But only the record method rules are prefixed as such.

You mean like why records require you to add "static" to class methods? Makes no sense to me either.

I don't understand  why record constructors must have parameters while static functions do not.

Regards,
Ryan Joseph



More information about the fpc-pascal mailing list