Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2011-03

Generics in Delphi mode?

6 messages · 6 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

timveldhuizen

Hi. I just found out today that generics also work in Free Pascal (and as I understand it, it was even implemented before it was added in delphi :) ).

However, the way it was implemented makes me frown a bit. Not that it is that bad or unusable or illogical, but as I use Delphi mode, I was expecting it to be compatible to the way it works in delphi. In other words: with the same syntax and same generic types like TList and TObjectList etc... Now I still have to add a number of $IFDEF's everywhere to make it compatible with delphi even though I i've used:

{$IFDEF FPC}
  {$MODE DELPHI}
{$ENDIF}

I hope very much that this will be changed to a delphi compatible style, because if even the delphi compatible mode starts to deviate from delphi, then how far will the compatibility mode implementation be from the Embarcadero delphi language spec in something like 5 years from now?

Greetz,
Tim.

View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Generics-in-Delphi-mode-tp4272087p4272087.html Sent from the Free Pascal - General mailing list .
Žilvinas Ledas
to timveldhuizen

Hi,

timveldhuizen wrote
I hope very much that this will be changed to a delphi compatible style

It is already implemented in Trunk ;)

Regards,
Žilvinas

Tim Veldhuizen
to Žilvinas Ledas

Hi,

2011/3/30 Žilvinas Ledas

It is already implemented in Trunk ;)

Wonderful! I can hardly wait for it to be released in a stable version. I have version 2.4.0 here as the default freepascal package in Fedora 13, but I'll give the new release a spin as soon as it's out. I don't see a release date announcement anywhere though. Guess we'll have to be patient..

Thanks!
Tim.

Jonas Maebe
to Tim Veldhuizen
Tim Veldhuizen wrote 5 lines
Wonderful! I can hardly wait for it to be released in a stable version. I have version 2.4.0 here as the default freepascal package in Fedora 13, but I'll give the new release a spin as soon as it's out. I don't see a release date announcement anywhere though. Guess we'll have to be patient..

It won't be in the next stable release (2.4.4), but only in the next major release (2.6.0). There is no date yet for the latter.

Jonas