[fpc-pascal] EmptyStr

Ernest V Miller miller_ev at etk.ru
Wed Mar 27 02:56:23 CET 2013


Doh! These atavisms here and there and backward compatibilities scattered
around units..
It was Borland's hack to introduce typed constants and I wonder these
ancient workarounds
are still declared between ordinary initialized variables.

fpc-pascal-bounces at lists.freepascal.org написано 26.03.2013 18:12:29:

>
> On 26 Mar 2013, at 10:39, Ernest V Miller wrote:
>
> > Why  assigning EmptyStr as default value in signature is not allowed
> > while
> > using it in body is OK?
>
> Because default paramater have to be (symbolic) constants. EmptyStr is
> a typed constant, which is the same as an initialized variable.
>
>
> Jonas
>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal


More information about the fpc-pascal mailing list