Am 06.02.2017 02:37 schrieb "Ryan Joseph" <r...@thealchemistguild.com>:
>
> I tried class functions in records already but I got the error "Class
methods must be static in records”. Not sure what that means but I assumed
they don’t work either.

You need to add the "static" modifier to the method. Class functions in
records can't have a self parameter and the "static" disables that. That's
why.

Regards,
Sven
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to