Am 05.02.2017 09:13 schrieb "Ryan Joseph" <[email protected]>:
>
> Why is this restriction in place and what are the alternatives if any?
Some times I want to just provide a method that sets default values for a
record without any parameters but FPC doesn’t let me for some reason.

Delphi compatibility.
As a workaround you could add a constructor with a default parameter.

Regards,
Sven
_______________________________________________
fpc-pascal maillist  -  [email protected]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to