Re: [fpc-devel] Templates / Generics

2005-11-09 Thread Joost van der Sluis
On Tue, 8 Nov 2005 [EMAIL PROTECTED] wrote: Michael Van Canneyt wrote: Then they have to publish their specs real soon now. And I mean not something in a blog, but more something like documentation. We can't wait another 5 years, until they finally make up their mind. Generics are

Re: [fpc-devel] Generics Basics

2005-11-09 Thread Bram Kuijvenhoven
Daniël Mantione wrote: Ok, lets put it blunt. It is absolutely not important to have templates at all. We've been able to develop top class code of the best kind without templates. That is true. Yet I really like the type-safety of templates. Advantages include: - you have to type less type

Re: [fpc-devel] Generics Basics

2005-11-09 Thread Bram Kuijvenhoven
Daniël Mantione wrote: Op Wed, 9 Nov 2005, schreef Bram Kuijvenhoven: Daniël Mantione wrote: (Ok, maybe I'm exaggerating a little bit, but don't you agree generics /are/ useful?) Certainly I do agree. However, they *will* be used to introduce the bloated programming I described. I don't

Re: [fpc-devel] Generics Basics

2005-11-09 Thread Daniël Mantione
Op Wed, 9 Nov 2005, schreef Bram Kuijvenhoven: These tricks have been used in some C++ compilers with very limited success. The problem is that class_a has a different virtual methods/constructors/destructors than class b, so the code to be generated for them will be different, even

[fpc-devel] Inline

2005-11-09 Thread Paul Davidson
Noticed that Procedure fpc_AnsiStr_Decr_Ref (Var S : Pointer); is not inlined. Tried it and it seems to work. P Davidson http://CoraxNetworks.com ___ fpc-devel maillist - fpc-devel@lists.freepascal.org

Re: [fpc-devel] Templates / Generics; Vote

2005-11-09 Thread Vincent Snijders
[EMAIL PROTECTED] wrote: Delphi.Net2.0 is using Chrome is using C# is using C/C++ is using Why should FPC use generics ??? Because it is more readable. is an operator and therefore should not be used as bracket in generic definition. That b.s. will break the Delphi code base!

[fpc-devel] CrossFPC article (in german)

2005-11-09 Thread rstar
http://www.toolbox-mag.de/data/tx62005artikel1.pdf ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Templates / Generics; Vote

2005-11-09 Thread Marcel Martin
[EMAIL PROTECTED] wrote: Delphi.Net2.0 is using Chrome is using C# is using C/C++ is using Why should FPC use generics ??? Why should FPC be Pascal-ish? Is that your question? :-) mm ___ fpc-devel maillist - fpc-devel@lists.freepascal.org

Re: [fpc-devel] Templates / Generics; Vote

2005-11-09 Thread Micha Nelissen
On Wed, 09 Nov 2005 19:16:46 +0100 [EMAIL PROTECTED] wrote: Delphi.Net2.0 is using Uncertain. Chrome is using Not inventive enough to come up with something of their own and simply following .NET C# syntax. C# is using Duh. It's a C derivative. C/C++ is using Duh, they like short

[fpc-devel] License of RTL

2005-11-09 Thread Ivan Shikhalev
Some files of RTL core are under the full GPL license, not a LGPL. Is it a new politics of FPC? There are some files which are necessary. As example, rtl/linux/i386/syscallh.inc, etc. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org

Re: [fpc-devel] Templates / Generics; Vote

2005-11-09 Thread Micha Nelissen
Micha Nelissen wrote: Come on, we're just discussing pros and cons, who knows what the final syntax will be? Ok, to prove this, I've added some ugly examples posted on IRC in the wiki. Look at the bottom of generic keyword syntax examples. Anyone an idea ? :-) Micha

Re: [fpc-devel] Templates / Generics; Vote

2005-11-09 Thread Marco van de Voort
Pro reason will probably be: compatibility. Pro generic will probably be: more Pascal-alike/readability. Delphi.Net2.0 is using Chrome is using C# is using C/C++ is using Why should FPC use generics ??? Why not if it is better readable and in the parser? None of the template

Re: [fpc-devel] Templates / Generics; Vote

2005-11-09 Thread Micha Nelissen
Micha Nelissen wrote: Ok, to prove this, I've added some ugly examples posted on IRC in the wiki. Look at the bottom of generic keyword syntax examples. Anyone an idea ? :-) Ok I've posted under Suggestion 2 a slightly modified syntax. Let me know what you think. Micha