Am 05.02.2017 15:04 schrieb "Ryan Joseph" <[email protected]>:
>
> I never knew Pascal had default parameters, a feature I always use and
enjoy in PHP. Once again I learn something new about the language I use. :)
I suggest you to read through the language reference guide then ;)
> However, the constructor with default params does not work. I get the
same error as before. {$modeswitch advancedrecords} is on.
Oh, well, it was worth a shot... Alternatively you could declare a class
function named Create that returns an instance of the record. Even Delphi
is using that for Rtti.TRttiContext.
Regards,
Sven
_______________________________________________
fpc-pascal maillist - [email protected]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal