Sign in Join

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

Mailing lists / fpc-devel / 2013-03

Type helpers in delphi mode

5 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Anthony Walter

In the latest trunk of fpc are their any plans to allow for type helpers and {$mode delphi}?

I ask this because I want to mix in a single unit both the delphi style generics and type helpers and it seems that this is currently not supported.

Also, is there a single online 'living' reference everyone is maintaining to describe both old and new languages features in the current build? I get the feeling that maybe I have missed some improvements to fpc language feature and can only discover them by searching through the archives of this mailing list.

If not, would it be possible to get everyone on the same page and make this happen? For example, by implementing a policy forcing people to update a current version of fpc wiki before accepting language changing features.

Reply by email

Anthony Walter
to Jonas Maebe

Regarding my original question, the according to the wiki page (which is now working), delphi mode can use record helper instead of type helper, and that seems to function correctly.

About the wiki page itself, I think it's missing some new features. I believe type constraints on generics is new, and I don't see it on the wiki. Which leads to me believe there could be other unlisted fpc language enhancements, of which I wouldn't know.

Would it be possible get an enforceable policy on this point? I really appreciate the time and care contributors make in language enhancements, but it seems like their efforts can be diminished if the only way to know about some of them is to constantly keep up messages tucked away in this mailing list (or go back through the archives for new people).

Thanks

Jonas Maebe wrote 19 lines
On 29 Mar 2013, at 15:02, Anthony Walter wrote: Also, is there a single online 'living' reference everyone is maintaining to describe both old and new languages features in the current build? http://wiki.freepascal.org/FPC_New_Features_Trunk and the corresponding pages for previous releases it links to (although the wiki seems to be down currently) Jonas _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply by email

Jonas Maebe
to Anthony Walter
Anthony Walter wrote 6 lines
About the wiki page itself, I think it's missing some new features. I believe type constraints on generics is new, and I don't see it on the wiki. Which leads to me believe there could be other unlisted fpc language enhancements, of which I wouldn't know. Would it be possible get an enforceable policy on this point?

It is very hard to enforce things in a volunteer project, and the more things are the less volunteers you generally get. Most of the time only best effort is possible. The only way to guarantee that you don't miss anything, is probably to follow the svn commits (e.g. via http://svn.freepascal.org/feeds/fpcsvn.rss ). If you notice a particular feature doesn't get added to the wiki page, you can of course signal it here (or add it yourself, after all the wiki can be changed by anyone).

Jonas

Reply by email

Sven Barth
to Anthony Walter: Regarding my original question, the according to the wiki page (which is now working),…
"Anthony Walter" wrote
Regarding my original question, the according to the wiki page (which is

now working), delphi mode can use record helper instead of type helper, and that seems to function correctly.

As you noticed you need to use "record helper" out if Delphi compatibility.

About the wiki page itself, I think it's missing some new features. I

believe type constraints on generics is new, and I don't see it on the wiki. Which leads to me believe there could be other unlisted fpc language enhancements, of which I wouldn't know.

Seems that I forgot the constraints indeed... I'll need to change that ^^

Regards,
Sven

Reply by email