Re: [fpc-devel] language extensions

2007-06-14 Thread Florian Klaempfl
Neil Graham schrieb: Daniël Mantione wrote: Andreas uses a preprocessor to convert the language extensions into Delphi compatible code. This is a remarkable achievement, but I don't see much value for this approach for Free Pascal; since we have the source code, we could implement the

Re: [fpc-devel] language extensions

2007-06-14 Thread Graeme Geldenhuys
On 13/06/07, Daniël Mantione [EMAIL PROTECTED] wrote: Andreas uses a preprocessor to convert the language extensions into Delphi compatible code. This is a remarkable achievement, but I don't see much value for this approach for Free Pascal; since we have the source code, we could implement the

Re: [fpc-devel] language extensions

2007-06-14 Thread Daniël Mantione
Op Thu, 14 Jun 2007, schreef Graeme Geldenhuys: On 13/06/07, Daniël Mantione [EMAIL PROTECTED] wrote: Andreas uses a preprocessor to convert the language extensions into Delphi compatible code. This is a remarkable achievement, but I don't see much value for this approach for Free

Re: [fpc-devel] language extensions

2007-06-14 Thread Vinzent Hoefler
On Thursday 14 June 2007 06:42, Florian Klaempfl wrote: Why do you need a plug in mechanism? You've the sources? When you have the sources, 90 per cent of the use of a plugin are gone. Well, we'd call that non-intrusive change. ;) You'd just need to compile the plug-in, and not a changed

Re: [fpc-devel] language extensions

2007-06-14 Thread Florian Klaempfl
Vinzent Hoefler schrieb: On Thursday 14 June 2007 06:42, Florian Klaempfl wrote: Why do you need a plug in mechanism? You've the sources? When you have the sources, 90 per cent of the use of a plugin are gone. Well, we'd call that non-intrusive change. ;) You'd just need to compile the

Re: [fpc-devel] language extensions

2007-06-14 Thread Florian Klaempfl
Graeme Geldenhuys schrieb: Hi, I found this website containing language extension that Andreas Hausladen wrote for Delphi. Is there possibly something we can use in Free Pascal? Sorry, I'm not sure what license Andreas used. http://andy.jgknet.de/dlang/ I like the idea of making

Re: [fpc-devel] language extensions

2007-06-14 Thread David Butler
Actually, Delphi now supports for-in. It also supports things like nested classes, class helpers, operator overloading and inlining. See: http://dn.codegear.com/article/34324 On 14/06/07, Florian Klaempfl [EMAIL PROTECTED] wrote: Graeme Geldenhuys schrieb: Hi, I found this website

Re: [fpc-devel] language extensions

2007-06-14 Thread Daniël Mantione
Op Thu, 14 Jun 2007, schreef Florian Klaempfl: Graeme Geldenhuys schrieb: Hi, I found this website containing language extension that Andreas Hausladen wrote for Delphi. Is there possibly something we can use in Free Pascal? Sorry, I'm not sure what license Andreas used.

Re: [fpc-devel] language extensions

2007-06-14 Thread Katona [EMAIL PROTECTED]
David Butler wrote / napísal(a): Actually, Delphi now supports for-in. It also supports things like nested classes, class helpers, operator overloading and inlining. All those features are because of .NET. FPC supported proper operator overloading (not in classes only) and inlining for quite

Re: [fpc-devel] language extensions

2007-06-14 Thread David Butler
On 14/06/07, Ales( Katona [EMAIL PROTECTED] wrote: David Butler wrote / napísal(a): Actually, Delphi now supports for-in. It also supports things like nested classes, class helpers, operator overloading and inlining. All those features are because of .NET. All the same, they are also

Re: [fpc-devel] language extensions

2007-06-14 Thread Katona [EMAIL PROTECTED]
David Butler wrote / napísal(a): All the same, they are also supported in the Win32 compiler. What I ment to say is that we're most probably not going to re-do what we already have done differently before Delphi. eg: I don't see their OOP operator overloading as viable considering we have a

Re: [fpc-devel] language extensions

2007-06-14 Thread Bram Kuijvenhoven
Daniël Mantione wrote: Op Thu, 14 Jun 2007, schreef Florian Klaempfl: Graeme Geldenhuys schrieb: I like the for-in code. Using the default property is clean, using count imo not. Thought I admit I've no idea so far to do it better. Well, there already is a ;default; directive, we could

Re: [fpc-devel] language extensions

2007-06-14 Thread David Butler
On 14/06/07, Bram Kuijvenhoven [EMAIL PROTECTED] wrote: Daniël Mantione wrote: Op Thu, 14 Jun 2007, schreef Florian Klaempfl: Graeme Geldenhuys schrieb: I like the for-in code. Using the default property is clean, using count imo not. Thought I admit I've no idea so far to do it better.

Re: [fpc-devel] language extensions

2007-06-14 Thread Florian Klaempfl
Ales schrieb: David Butler wrote / napísal(a): Actually, Delphi now supports for-in. It also supports things like nested classes, class helpers, operator overloading and inlining. All those features are because of .NET. FPC supported proper operator overloading (not in classes only) and

Re: [fpc-devel] language extensions

2007-06-14 Thread David Butler
Delphi supports iterator for the for in in different ways: * Dynamic arrays, static arrays, sets, strings and records have built-in iterators * For classes and interface it requires a method called GetEnumerator. GetEnumerator can return a class, an interface or a record. This class,