Sign in Join

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

Mailing lists / fpc-pascal / 2010-04

Re: Bridging FPC and Delphi

14 messages · 6 people · –

Reply by email Subscribe to this list Your subscription

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

Florian Klaempfl
to Anthony Walter: I was on freenode irc #fpc earlier and asked some questions but not enough people were…
Show quoted text 7 lines
I was on freenode irc #fpc earlier and asked some questions but not enough people were online to get an answer. My question was/is: **** Will there ever again come a point where FPC attempts to bring in more compatibility with Delphi?

Nobody can predict if sometimes in the future somebody will contribute a patch regarding this.

Show quoted text 23 lines
Specifically, in regards to operator overloading and generic language syntax. **** I'd really like to use generics in my cross platform graphic widgets toolkit and have it continue to work with both Delphi and FPC, but as of right I can't tolerate the enormous amounts of {$IFDEFs} required to do so. For those interested, here is a video showcasing a very old version (circa 2004) of my toolkit. Compiles on Windows (Delphi 7) and Linux (FPC). http://www.youtube.com/watch?v=iqeFZ2zhszU Screens from my picture browser (circa 2006) : http://imagebot.org/snapshops/photo-grid-animate.jpg http://imagebot.org/snapshops/3d-picture-gallery.jpg ------------------------------------------------------------------------ _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply by email

Florian Klaempfl
to Anthony Walter: When I google search for "FPC generics" tohe top result links here:…
Show quoted text 13 lines
When I google search for "FPC generics" tohe top result links here: http://wiki.freepascal.org/Generics Two cases: 1) type generic TList<T> = class // ... as is now, the word generic is redundant 2) type TList<T> = class // ... better and in line with Delphi It seems both were on the suggested list. How did version case 1 win out?

I told you this already months before. type generic is a compromise because there was even the idea to make generic an own section like

var
...
type
...
generics
...

Reply by email

Florian Klaempfl
to Anthony Walter: Technical limitations aside, at this point what would be needed from the community to get…
Technical limitations aside, at this point what would be needed from the community to get the generic syntax changed?

1) Delphi mode only
2) not breaking old code i.e. accepting both variants
3) more Delphi generic compatibility

Show quoted text 11 lines
Supposing I had the soruce code changes to accommodate the change to remove the "generic" keyword, what would be needed from the community to approve moving that change into the language? ------------------------------------------------------------------------ _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply by email

Anthony Walter

I was on freenode irc #fpc earlier and asked some questions but not enough people were online to get an answer.

My question was/is:

**** Will there ever again come a point where FPC attempts to bring in more compatibility with Delphi? Specifically, in regards to operator overloading and generic language syntax. ****

I'd really like to use generics in my cross platform graphic widgets toolkit and have it continue to work with both Delphi and FPC, but as of right I can't tolerate the enormous amounts of {$IFDEFs} required to do so.

For those interested, here is a video showcasing a very old version (circa
2004) of my toolkit. Compiles on Windows (Delphi 7) and Linux (FPC).

http://www.youtube.com/watch?v=iqeFZ2zhszU

Screens from my picture browser (circa 2006) :

http://imagebot.org/snapshops/photo-grid-animate.jpg http://imagebot.org/snapshops/3d-picture-gallery.jpg

Reply by email

Anthony Walter
to Florian Klaempfl: Nobody can predict if sometimes in the future somebody will contribute a patch regarding…

When I google search for "FPC generics" tohe top result links here:

http://wiki.freepascal.org/Generics

Two cases:

1) type generic TList<T> = class // ... as is now, the word generic is redundant

2) type TList<T> = class // ... better and in line with Delphi

It seems both were on the suggested list. How did version case 1 win out? To me it would seem that pascal has always been about:

[type block] [identifier] = [type declare] ;
[const block] [identifier] = [const declare];
[var block] [identifier, [identifier, ...]] : [var declare];

Where identifier was always the first token to begin a type, var, or const block. Oh well, I hope someday we can revert Free Pascal the language to case 2.

Reply by email

Graeme Geldenhuys
to Anthony Walter: When I google search for "FPC generics" tohe top result links here:…
Anthony Walter wrote 5 lines
1) type generic TList<T> = class // ... as is now, the word generic is redundant 2) type TList<T> = class // ... better and in line with Delphi

To be honest, this is a slightly unfair case, saying Free Pascal must become Delphi compatible, when Free Pascal had generics support *before* Delphi did. Maybe Delphi should become more Free Pascal compatible.

It seems both were on the suggested list. How did version case 1 win out? To me it would seem that pascal has always been about:

I can list quite a few examples where Delphi breaks the "normal pascal like" syntax too. Yet nobody complains about that.

Our company also wanted to have common code and be able to switch between Delphi and the Free Pascal compiler. But then we simply came to the conclusion that Free Pascal is an excellent compiler on its own, and we really don't need Delphi support any more. We made the switch 5 years ago (to only work with Free Pascal), and have never regretted our decision.

I just think the "being delphi compatible" every step of the way, will hold Free Pascal Compiler back, having to always wait for Embarcadero to catch-up with what developers want (and we know how slow Delphi can move - last few years showing this). And that means Free Pascal will *always* be one step behind. Free Pascal is powerful enough to stand on its own. It has many unique features Delphi cannot compete with. Simply switch to Free Pascal as the only compiler and continue to take advantage of what FPC has to offer.

Just my 2c worth.

Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/

Reply by email

Anthony Walter
to Graeme Geldenhuys

Graeme:

"To be honest, this is a slightly unfair case, saying Free Pascal must become Delphi compatible, when Free Pascal had generics support *before* Delphi did. Maybe Delphi should become more Free Pascal compatible."

I've preemptively disabled this argument so many times in the past. It's become passe.

Reply by email

Florian Klaempfl
to Anthony Walter
Show quoted text 8 lines
Graeme: "To be honest, this is a slightly unfair case, saying Free Pascal must become Delphi compatible, when Free Pascal had generics support *before* Delphi did. Maybe Delphi should become more Free Pascal compatible." I've preemptively disabled this argument so many times in the past.

Really? I didn't see a single patch of you so far.

Reply by email

Anthony Walter
to Marco van de Voort

"Technical limitations aside, at this point what would be needed from the community to get the generic syntax changed?:

: Patches.

I believe there would first need to be some sort ofg consensus within the community about the changing the syntax.

Reply by email

Felipe Monteiro de Carvalho
to Anthony Walter
Anthony Walter wrote
I believe there would first need to be some sort ofg consensus within the community about the changing the syntax.

If both syntaxes are supported I don't think many people will be against it.

Felipe Monteiro de Carvalho

Reply by email

leledumbo
to Felipe Monteiro de Carvalho

Question: who wants to add it?

Felipe Monteiro de Carvalho wrote 15 lines
On Tue, Apr 27, 2010 at 10:18 PM, Anthony Walter wrote: > I believe there would first need to be some sort ofg consensus within the > community about the changing the syntax. If both syntaxes are supported I don't think many people will be against it. -- Felipe Monteiro de Carvalho _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
View this message in context: http://old.nabble.com/Bridging-FPC-and-Delphi-tp28379407p28384862.html Sent from the Free Pascal - General mailing list .

Reply by email

Marco van de Voort
to Anthony Walter: "Technical limitations aside, at this point what would be needed from the community to…

In our previous episode, Anthony Walter said:

Show quoted text 7 lines
"Technical limitations aside, at this point what would be needed from the community to get the generic syntax changed?: : Patches. I believe there would first need to be some sort ofg consensus within the community about the changing the syntax.

I don't think this is necessary (the Delphi mode is for delphi compatibility, and till now even half decent patches that improve compatibilitiy have been accepted), and changing is not an option since that unnecessarily breaks compatibility.

Adding the Delphi syntax to Delphi mode would be enough.

Reply by email