[fpc-pascal] fpc procedure modifier []
Sven Barth
pascaldragon at googlemail.com
Thu Nov 16 20:17:41 CET 2017
On 16.11.2017 14:12, Sven Barth wrote:
> Am 16.11.2017 14:01 schrieb "Mattias Gaertner"
> <nc-gaertnma at netcologne.de <mailto:nc-gaertnma at netcologne.de>>:
>
> On Thu, 16 Nov 2017 11:49:59 +0100
> Maciej Izak <hnb.code at gmail.com <mailto:hnb.code at gmail.com>> wrote:
>
> > 2017-11-16 11:39 GMT+01:00 Mattias Gaertner
> <nc-gaertnma at netcologne.de <mailto: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).
One other point to differentiate them: the modifier one always ends with
a semicolon after the closing bracket, Delphi's attributes never do that.
Regards,
Sven
More information about the fpc-pascal
mailing list