Re: [fpc-pascal] fpc procedure modifier []

2017-11-16 Thread Mattias Gaertner
On Thu, 16 Nov 2017 15:25:55 +0100 Maciej Izak wrote: > 2017-11-16 15:21 GMT+01:00 Michael Van Canneyt : > > > I think that prefixedattributes should simply disable the use of proc > > modifier []. The probability of having code that needs both is almost zero, > > the [] syntax is very old and a

Re: [fpc-pascal] fpc procedure modifier []

2017-11-16 Thread Sven Barth via fpc-pascal
On 16.11.2017 20:25, Maciej Izak wrote: > > > 2017-11-16 20:17 GMT+01:00 Sven Barth via fpc-pascal > mailto:fpc-pascal@lists.freepascal.org>>: > > One other point to differentiate them: the modifier one always ends with > a semicolon after the closing bracket, Delphi's attributes never d

Re: [fpc-pascal] fpc procedure modifier []

2017-11-16 Thread Maciej Izak
2017-11-16 20:17 GMT+01:00 Sven Barth via fpc-pascal < fpc-pascal@lists.freepascal.org>: > One other point to differentiate them: the modifier one always ends with > a semicolon after the closing bracket, Delphi's attributes never do that. > sadly this is not true at all :( see: https://svn.fre

Re: [fpc-pascal] fpc procedure modifier []

2017-11-16 Thread Sven Barth via fpc-pascal
On 16.11.2017 14:12, Sven Barth wrote: > Am 16.11.2017 14:01 schrieb "Mattias Gaertner" > mailto:nc-gaert...@netcologne.de>>: > > On Thu, 16 Nov 2017 11:49:59 +0100 > Maciej Izak mailto:hnb.c...@gmail.com>> wrote: > > > 2017-11-16 11:39 GMT+01:00 Mattias Gaertner > mailto:nc-gaert

Re: [fpc-pascal] fpc procedure modifier []

2017-11-16 Thread Sven Barth via fpc-pascal
On 16.11.2017 15:10, Mattias Gaertner wrote: > On Thu, 16 Nov 2017 14:12:18 +0100 > Sven Barth via fpc-pascal wrote: > >> [...] >> 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 (

Re: [fpc-pascal] fpc procedure modifier []

2017-11-16 Thread Maciej Izak
2017-11-16 15:21 GMT+01:00 Michael Van Canneyt : > I think that prefixedattributes should simply disable the use of proc > modifier []. The probability of having code that needs both is almost zero, > the [] syntax is very old and almost not used. > > Mode Delphi(Unicode) enables prefixedattribute

Re: [fpc-pascal] fpc procedure modifier []

2017-11-16 Thread Michael Van Canneyt
On Thu, 16 Nov 2017, Mattias Gaertner wrote: On Thu, 16 Nov 2017 14:12:18 +0100 Sven Barth via fpc-pascal wrote: [...] 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

Re: [fpc-pascal] fpc procedure modifier []

2017-11-16 Thread Mattias Gaertner
On Thu, 16 Nov 2017 14:12:18 +0100 Sven Barth via fpc-pascal wrote: >[...] > 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). ppa

Re: [fpc-pascal] fpc procedure modifier []

2017-11-16 Thread Maciej Izak
2017-11-16 14:01 GMT+01:00 Mattias Gaertner : > Good to know. Thanks. > > So, how will FPC distinguish the two []? for now the idea is very simple: for active prefixedattributes "procedure modifier []" will be inaccessible (which means breaking for backward compatibility). This is the reason why

Re: [fpc-pascal] fpc procedure modifier []

2017-11-16 Thread Sven Barth via fpc-pascal
Am 16.11.2017 14:01 schrieb "Mattias Gaertner" : On Thu, 16 Nov 2017 11:49:59 +0100 Maciej Izak wrote: > 2017-11-16 11:39 GMT+01:00 Mattias Gaertner : > > > What $modes support this? > > The reason I ask is I'm trying to distinguish them from Delphi > > Attributes in pparser. > > > > for Delphi

Re: [fpc-pascal] fpc procedure modifier []

2017-11-16 Thread Mattias Gaertner
On Thu, 16 Nov 2017 11:49:59 +0100 Maciej Izak wrote: > 2017-11-16 11:39 GMT+01:00 Mattias Gaertner : > > > 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 "

Re: [fpc-pascal] fpc procedure modifier []

2017-11-16 Thread Maciej Izak
2017-11-16 11:39 GMT+01:00 Mattias Gaertner : > 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 DELPH

[fpc-pascal] fpc procedure modifier []

2017-11-16 Thread Mattias Gaertner
Hi, Where can I find some information about the [] procedure modifier of FPC? For example: procedure fpc_check_object(_vmt : pointer); [public,alias:'FPC_CHECK_OBJECT']; compilerproc; What $modes support this? The reason I ask is I'm trying to distinguish them from Delphi Attributes in pparser.