Re: [fpc-pascal] Bridging FPC and Delphi

2010-04-28 Thread Marco van de Voort
In our previous episode, Anthony Walter said:
 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.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Bridging FPC and Delphi

2010-04-27 Thread Florian Klaempfl
Anthony Walter schrieb:
 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.

 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  -  fpc-pascal@lists.freepascal.org
 http://lists.freepascal.org/mailman/listinfo/fpc-pascal

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Bridging FPC and Delphi

2010-04-27 Thread Anthony Walter
When I google search for FPC generics tohe top result links here:

http://wiki.freepascal.org/Generics

Two cases:

1) type generic TListT = class // ... as is now, the word generic is
redundant

2) type TListT = 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.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Bridging FPC and Delphi

2010-04-27 Thread Florian Klaempfl
Anthony Walter schrieb:
 When I google search for FPC generics tohe top result links here:
 
 http://wiki.freepascal.org/Generics
 
 Two cases:
 
 1) type generic TListT = class // ... as is now, the word generic is
 redundant
 
 2) type TListT = 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
  ...

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Bridging FPC and Delphi

2010-04-27 Thread Anthony Walter
Technical limitations aside, at this point what would be needed from the
community to get the generic syntax changed? 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  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Bridging FPC and Delphi

2010-04-27 Thread Florian Klaempfl
Anthony Walter schrieb:
 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

 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  -  fpc-pascal@lists.freepascal.org
 http://lists.freepascal.org/mailman/listinfo/fpc-pascal

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Bridging FPC and Delphi

2010-04-27 Thread Graeme Geldenhuys
On 27 April 2010 20:14, Anthony Walter sys...@gmail.com wrote:

 1) type generic TListT = class // ... as is now, the word generic is
 redundant

 2) type TListT = 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/
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Bridging FPC and Delphi

2010-04-27 Thread Anthony Walter
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.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Bridging FPC and Delphi

2010-04-27 Thread Florian Klaempfl
Anthony Walter schrieb:
 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.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Bridging FPC and Delphi

2010-04-27 Thread Marco van de Voort
In our previous episode, Anthony Walter said:
 Technical limitations aside, at this point what would be needed from the
 community to get the generic syntax changed?

Patches.

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Bridging FPC and Delphi

2010-04-27 Thread Anthony Walter
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.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Bridging FPC and Delphi

2010-04-27 Thread Felipe Monteiro de Carvalho
On Tue, Apr 27, 2010 at 10:18 PM, Anthony Walter sys...@gmail.com 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  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Bridging FPC and Delphi

2010-04-27 Thread leledumbo

Question: who wants to add it?


Felipe Monteiro de Carvalho wrote:
 
 On Tue, Apr 27, 2010 at 10:18 PM, Anthony Walter sys...@gmail.com 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  -  fpc-pascal@lists.freepascal.org
 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 archive at Nabble.com.

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal