[fpc-pascal] Parameterless constructors are not allowed in records or record/type helpers

Ryan Joseph ryan at thealchemistguild.com
Tue Feb 7 10:29:33 CET 2017


Thanks got it now. Not ideal but it works and is a small improvement over a function.

> On Feb 6, 2017, at 2:06 PM, Sven Barth <pascaldragon at googlemail.com> wrote:
> 
> 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,
	Ryan Joseph




More information about the fpc-pascal mailing list