Re: [lazarus] The use of Variants?

2007-11-13 Thread Sam Liddicott
Graeme Geldenhuys wrote: Hi, What are your feelings about the use of Variants? I'm debating this in another NG and would like some outside opinion. My personal opinion on Variants: * I don't like them. [if that's a reason] :-) Well they were darn useful in Delphi when dealing with

Re: [lazarus] The use of Variants?

2007-11-13 Thread Florian Klaempfl
Graeme Geldenhuys schrieb: Hi, What are your feelings about the use of Variants? I'm debating this in another NG and would like some outside opinion. My personal opinion on Variants: Variant based code is a nightmare to maintain. Just let somebody else extend some variant based code. How

Re: [lazarus] The use of Variants?

2007-11-13 Thread Sam Liddicott
Michael Van Canneyt wrote: On Tue, 13 Nov 2007, Graeme Geldenhuys wrote: * They tend to be slow compared no native types. In Delphi 6 they were very slow. How does it compare in FPC 2.2.0? They are slower than native types, there is no way around this. Almost each and

Re: [lazarus] The use of Variants?

2007-11-13 Thread Sam Liddicott
Florian Klaempfl wrote: Graeme Geldenhuys schrieb: Hi, What are your feelings about the use of Variants? I'm debating this in another NG and would like some outside opinion. My personal opinion on Variants: Variant based code is a nightmare to maintain. Just let somebody else

Re: [lazarus] The use of Variants?

2007-11-13 Thread Michael Van Canneyt
On Tue, 13 Nov 2007, Sam Liddicott wrote: Michael Van Canneyt wrote: On Tue, 13 Nov 2007, Graeme Geldenhuys wrote: * They tend to be slow compared no native types. In Delphi 6 they were very slow. How does it compare in FPC 2.2.0? They are slower than

Re: [lazarus] The use of Variants?

2007-11-13 Thread Sam Liddicott
* Michael Van Canneyt wrote, On 13/11/07 08:47: On Tue, 13 Nov 2007, Sam Liddicott wrote: Michael Van Canneyt wrote: On Tue, 13 Nov 2007, Graeme Geldenhuys wrote: * They tend to be slow compared no native types. In Delphi 6 they were very slow. How does it

Re: [lazarus] The use of Variants?

2007-11-13 Thread Damien Gerard
On Nov 13, 2007, at 10:12 AM, Sam Liddicott wrote: * Michael Van Canneyt wrote, On 13/11/07 08:47: On Tue, 13 Nov 2007, Sam Liddicott wrote: Michael Van Canneyt wrote: On Tue, 13 Nov 2007, Graeme Geldenhuys wrote: * They tend to be slow compared no native types. In Delphi 6

Re: [lazarus] The use of Variants?

2007-11-13 Thread Sam Liddicott
* Damien Gerard wrote, On 13/11/07 09:31: I think it is the same debate between C++ programmers et PHP programmers. Nearly. It's a meta-debate on whether or not pascal users should be ALLOWED to use variants, not whether or not pascal should implement everything as a variant. The first group

Re: [lazarus] The use of Variants?

2007-11-13 Thread Damien Gerard
On Nov 13, 2007, at 10:59 AM, Sam Liddicott wrote: * Damien Gerard wrote, On 13/11/07 09:31: I think it is the same debate between C++ programmers et PHP programmers. Nearly. It's a meta-debate on whether or not pascal users should be ALLOWED to use variants, not whether or not

Re: [lazarus] The use of Variants?

2007-11-13 Thread Sam Liddicott
* Damien Gerard wrote, On 13/11/07 10:43: I don't think nobody is complaining here since everybody is free to use it or not. Oh some people complain about the widget encapsulation ??? So they don't use QT as well and if they want a multiplatform software what do they use ? Java ? :) And

Re: [lazarus] The use of Variants?

2007-11-13 Thread Damien Gerard
On Nov 13, 2007, at 12:03 PM, Sam Liddicott wrote: * Damien Gerard wrote, On 13/11/07 10:43: I don't think nobody is complaining here since everybody is free to use it or not. Oh some people complain about the widget encapsulation ??? So they don't use QT as well and if they want a

Re: [lazarus] The use of Variants?

2007-11-13 Thread Marco van de Voort
On Tue, Nov 13, 2007 at 09:47:31AM +0200, Graeme Geldenhuys wrote: What are your feelings about the use of Variants? I'm debating this in another NG and would like some outside opinion. Use for what? My personal opinion on Variants: * I don't like them. [if that's a reason] :-) *

Re: [lazarus] The use of Variants?

2007-11-13 Thread Graeme Geldenhuys
On 13/11/2007, Marco van de Voort [EMAIL PROTECTED] wrote: On Tue, Nov 13, 2007 at 09:47:31AM +0200, Graeme Geldenhuys wrote: What are your feelings about the use of Variants? I'm debating this in another NG and would like some outside opinion. Use for what? In tiOPF we have a Criteria

Re: [lazarus] The use of Variants?

2007-11-13 Thread Sam Liddicott
* Graeme Geldenhuys wrote, On 13/11/07 12:39: On 13/11/2007, Marco van de Voort [EMAIL PROTECTED] wrote: On Tue, Nov 13, 2007 at 09:47:31AM +0200, Graeme Geldenhuys wrote: What are your feelings about the use of Variants? I'm debating this in another NG and would like some outside

Re: [lazarus] The use of Variants?

2007-11-13 Thread Graeme Geldenhuys
On 13/11/2007, Sam Liddicott [EMAIL PROTECTED] wrote: The tiOPF project is normally against using Variants, this interesting if it is a blanket policy, unless it is a blanket policy against the blanket use of variants :=) tiOPF does contain variants in code, we are just trying to minimize

Re: [lazarus] The use of Variants?

2007-11-13 Thread John
Marco van de Voort wrote: Being generic database support (allows to have generic code to talk to databases, without having the database layout in some structure form compiled in), COM support, or PHP (www.stack.nl/~marcov/phpser.zip ) They were never meant to be used as normal variables.

Re: [lazarus] The use of Variants?

2007-11-13 Thread Alexsander Rosa
Variants can be NULL. That's a great thing. 2007/11/13, Graeme Geldenhuys [EMAIL PROTECTED]: Hi, What are your feelings about the use of Variants? I'm debating this in another NG and would like some outside opinion. My personal opinion on Variants: * I don't like them. [if that's a

Re: [lazarus] The use of Variants?

2007-11-13 Thread Graeme Geldenhuys
On 13/11/2007, Alexsander Rosa [EMAIL PROTECTED] wrote: Variants can be NULL. That's a great thing. We already have NULL support in tiOPF without the use of variants! Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit

Re: [lazarus] The use of Variants?

2007-11-13 Thread Alexsander Rosa
How does it work? 2007/11/13, Graeme Geldenhuys [EMAIL PROTECTED]: On 13/11/2007, Alexsander Rosa [EMAIL PROTECTED] wrote: Variants can be NULL. That's a great thing. We already have NULL support in tiOPF without the use of variants! Regards, - Graeme -

Re: [lazarus] The use of Variants?

2007-11-13 Thread Graeme Geldenhuys
On 13/11/2007, Alexsander Rosa [EMAIL PROTECTED] wrote: How does it work? You can download and view the code from SourceForge. Or go to the tiOPF website and get links from their. http://www.tiopf.com The unit of interest or standing point would be Source/Core/tiObjects.pas Regards, -

RE: [lazarus] The use of Variants?

2007-11-13 Thread Sam Liddicott
The websvn link on http://tiopf.sourceforge.net/SourceCodeRepository.shtml Is broken. Sam -Original Message- From: Graeme Geldenhuys [EMAIL PROTECTED] Sent: 13 November 2007 17:44 To: lazarus@miraclec.com Subject: Re: [lazarus] The use of Variants? On 13/11/2007, Alexsander Rosa [EMAIL

Re: [lazarus] The use of Variants?

2007-11-13 Thread Graeme Geldenhuys
On 14/11/2007, Sam Liddicott [EMAIL PROTECTED] wrote: The websvn link on http://tiopf.sourceforge.net/SourceCodeRepository.shtml Is broken. The text shown is correct, but the actual link is still the old one. Thanks, I'll update the website now. Here is the correct link:

[lazarus] The use of Variants?

2007-11-12 Thread Graeme Geldenhuys
Hi, What are your feelings about the use of Variants? I'm debating this in another NG and would like some outside opinion. My personal opinion on Variants: * I don't like them. [if that's a reason] :-) * They seem like a bit of a hack. Native types seem to be a better solution to