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]  :-)
>   *  They seem like a bit of a hack. Native types seem to be a
>       better solution to me, even though it might end up being
>       a bit more work (coding wise).
>   *  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?

Variants are mainly interesting when communicating with foreign entities
that are not typefast.

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.

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to