test5.pas(26,10) Error: Class identifier expected
much more (eg AutoDeref-)
Thanks to both of you.
@PascalDragon, is there any plan to allow this simple style of Generic in Delphi or a compiler condition to activate it? I like FPC mode much more (eg AutoDeref-) but generics makes me use Delphi mode and change almost all things back to FPC mode.
I meant that FPC mode has a better defaults like AutoDeref, but the generic defaults seems wordy. Actually I am using pointermath option and many more with Delphi mode to simulate FPC mode with Delphi mode generic.
If there was a option for generics too it made the life easier. Or supporting the simple syntax in FPC mode.
The generic syntax might seem simple to you, but for the compiler it's a hell to parse. Not all expressions you can use in non-Delphi modes can be used in Delphi mode currently (especially when generic functions/methods are involved).Can you give an example of what can not be used in Delphi mode currently?
The generic syntax might seem simple to you, but for the compiler it's a hell to parse. Not all expressions you can use in non-Delphi modes can be used in Delphi mode currently (especially when generic functions/methods are involved).Can you give an example of what can not be used in Delphi mode currently?
- Is there a issue for this so I can follow up? (I can not find any issues for such topic)
- Will it be fixed with the implicit generic specialization Ryan and you are working on? (I am following the issue and development)
- Is there or will there be a compiler option to use the Delphi mode generic with FPC mode without leaving the FPC mode?
- Can I ask what is your idea about what is the better option in the long run? The Delphi generic mode or the FPC one?