Re: [fpc-devel] FPC implementation of attributes for language parts.

2016-05-23 Thread Maciej Izak
2016-04-13 13:46 GMT+02:00 Michael Van Canneyt : > On Wed, 13 Apr 2016, Maciej Izak wrote: > > 2016-04-13 13:03 GMT+02:00 Michael Van Canneyt : >> >> Sorry. This is simply very bad design. >>> >>> >> I agree with many points. Frankly, I was

Re: [fpc-devel] FPC implementation of attributes for language parts.

2016-04-13 Thread Kazantsev Alexey
On Wed, 13 Apr 2016 18:02:30 +0400, silvioprog wrote: No one really won't this but it is the must. IFDEF hell is much more visible for "constref/[ref] const" than in any other place... :( I need this feature too, but for Delphi compatibility. It could avoid a lot

Re: [fpc-devel] FPC implementation of attributes for language parts.

2016-04-13 Thread silvioprog
On Wed, Apr 13, 2016 at 10:06 AM, Maciej Izak wrote: [...] > No one really won't this but it is the must. IFDEF hell is much more > visible for "constref/[ref] const" than in any other place... :( > I need this feature too, but for Delphi compatibility. It could avoid a lot

Re: [fpc-devel] FPC implementation of attributes for language parts.

2016-04-13 Thread Michael Van Canneyt
On Wed, 13 Apr 2016, Maciej Izak wrote: 2016-04-13 14:36 GMT+02:00 Sven Barth : *I* won't add it. I can do it after merging Joost's class attributes branch. No one really won't this but it is the must. IFDEF hell is much more visible for "constref/[ref] const"

Re: [fpc-devel] FPC implementation of attributes for language parts.

2016-04-13 Thread Maciej Izak
2016-04-13 14:36 GMT+02:00 Sven Barth : > *I* won't add it. > I can do it after merging Joost's class attributes branch. No one really won't this but it is the must. IFDEF hell is much more visible for "constref/[ref] const" than in any other place... :( -- Best

Re: [fpc-devel] FPC implementation of attributes for language parts.

2016-04-13 Thread Sven Barth
Am 13.04.2016 13:25 schrieb "Maciej Izak" : > > I understand all this, and for the most part I agree, but... > > 2016-04-13 11:19 GMT+02:00 Sven Barth : >> >> Then just use an ifdef then. >> >> That "[ref] const ..." Is even more an abomination than

Re: [fpc-devel] FPC implementation of attributes for language parts.

2016-04-13 Thread Sven Barth
Am 13.04.2016 13:02 schrieb "Michael Van Canneyt" : > > > > On Wed, 13 Apr 2016, Maciej Izak wrote: > >> Moved from: "Initialize/Finalize management operators and Default >> intrinsic". I'd like to keep Initialize/Finalize topic more clear ;P >> >> Small introduction: >> >>

Re: [fpc-devel] FPC implementation of attributes for language parts.

2016-04-13 Thread Michael Van Canneyt
On Wed, 13 Apr 2016, Maciej Izak wrote: 2016-04-13 13:03 GMT+02:00 Michael Van Canneyt : Sorry. This is simply very bad design. I agree with many points. Frankly, I was surprised that they did something like using attributes in that way. I try to understand and

Re: [fpc-devel] FPC implementation of attributes for language parts.

2016-04-13 Thread Maciej Izak
2016-04-13 13:03 GMT+02:00 Michael Van Canneyt : > Sorry. This is simply very bad design. > I agree with many points. Frankly, I was surprised that they did something like using attributes in that way. I try to understand and find something positive. I only like to see

Re: [fpc-devel] FPC implementation of attributes for language parts.

2016-04-13 Thread Maciej Izak
I understand all this, and for the most part I agree, but... 2016-04-13 11:19 GMT+02:00 Sven Barth : > Then just use an ifdef then. > > That "[ref] const ..." Is even more an abomination than the attribute > syntax itself already is. > That requires too many IFDEFs.

Re: [fpc-devel] FPC implementation of attributes for language parts.

2016-04-13 Thread Michael Van Canneyt
On Wed, 13 Apr 2016, Maciej Izak wrote: Moved from: "Initialize/Finalize management operators and Default intrinsic". I'd like to keep Initialize/Finalize topic more clear ;P Small introduction: for selected language elements in Delphi is possible to use attributes. For example in Delphi we

Re: [fpc-devel] FPC implementation of attributes for language parts.

2016-04-13 Thread Sven Barth
Am 13.04.2016 09:42 schrieb "Maciej Izak" : > Michael Van Canneyt really doesn't like them :) : I don't like their use for this either. For their intended purpose, namely to decorate types or properties I have no complains (aside the syntax, but that's a different topic). >

[fpc-devel] FPC implementation of attributes for language parts.

2016-04-13 Thread Maciej Izak
Moved from: "Initialize/Finalize management operators and Default intrinsic". I'd like to keep Initialize/Finalize topic more clear ;P Small introduction: for selected language elements in Delphi is possible to use attributes. For example in Delphi we have: TCustomAttribute = class(TObject)