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 com objects and embedding wsh scripting stuff.
  *  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).
"better solution" just exposes your area of main experience rather than making any definitive comment on the use of variants. Spme people think object pascal and C are a hack and we should have just stuck with machine code.... whatever makes the job easier without offending reason (I'm thinking of BF here)
  *  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?
Well, however slow they may be it's better than doing it by hand; if people use variants where they don't need to they have their-selves to blame for any slowness.

So..... I've found 'em useful...

Sam

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

Reply via email to