[fpc-pascal] fpc procedure modifier []

Sven Barth pascaldragon at googlemail.com
Thu Nov 16 14:12:18 CET 2017


Am 16.11.2017 14:01 schrieb "Mattias Gaertner" <nc-gaertnma at netcologne.de>:

On Thu, 16 Nov 2017 11:49:59 +0100
Maciej Izak <hnb.code at gmail.com> wrote:

> 2017-11-16 11:39 GMT+01:00 Mattias Gaertner <nc-gaertnma at netcologne.de>:
>
> > What $modes support this?
> > The reason I ask is I'm trying to distinguish them from Delphi
> > Attributes in pparser.
> >
>
> for Delphi like attributes FPC will have new modeswitch
"prefixedattributes" .
> The implicit usage for $prefixedattributes  in DELPHI/DELPHIUNICODE mode
is
> not decided yet (but IMO this is probable scenario).

Good to know. Thanks.

So, how will FPC distinguish the two []?


The only idea I have is to check whether the first identifier is a
attribute and if not handle it as a modifier (or if a comma is following
the first identifier).

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20171116/027c0e17/attachment.html>


More information about the fpc-pascal mailing list