[fpc-pascal] Feature announcement: Dynamic array extensions

Sven Barth pascaldragon at googlemail.com
Thu Jun 21 11:17:20 CEST 2018


Mark Morgan Lloyd <markMLl.fpc-pascal at telemetry.co.uk> schrieb am Do., 21.
Juni 2018, 09:11:

> On 20/06/18 20:00, Sven Barth via fpc-pascal wrote:
>
> > Addendum: the support for the "+" operator is now coupled to a new
> > modeswitch "ArrayOperators".
> > If the modeswitch is enabled, then the operator can not be overloaded
> > and it also won't be used even if an overload from a unit without the
> > modeswitch is in scope (the compiler however issues a warning if this is
> > the case, so you can either remove the overload or disable the
> > modeswitch). If the modeswitch is not enabled then everything behaves as
> > before.
> > The modeswitch is enabled by default in Delphi modes as this feature was
> > added for Delphi compatibility. If you want to disable it in those modes
> > then you need to do this:
> > === code begin ===
> > {$mode delphi}{$modeswitch arrayoperators-} // Note the "-"
> > === code end ===
>
> Sven, please could we have a further update when you decide what version
> of the compiler will get the new facility, so that those of us with code
> that might clash can make sure we have version-specific conditionals in
> place.
>

New language features are normally not merged to a fixes branch (there were
exceptions in the past, but they weren't too big). So if you check for >=
3.1.1 you're set.

Regards,
Sven

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20180621/c5e91a4a/attachment.html>


More information about the fpc-pascal mailing list