Am 05.02.2017 09:13 schrieb "Ryan Joseph" <r...@thealchemistguild.com>: > > 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 - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal