Re: Invalid variant type conversion
From: Bjørge Sæther (bjorge_at_hahaha_itte.no)
Date: 01/21/04
- Next message: Bjørge Sæther: "Re: Invalid variant type conversion"
- Previous message: jimmy: "MDI in DLL"
- In reply to: Bruce Roberts: "Re: Invalid variant type conversion"
- Next in thread: J French: "Re: Invalid variant type conversion"
- Reply: J French: "Re: Invalid variant type conversion"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 21 Jan 2004 10:14:46 +0100
Bruce Roberts wrote:
> "Bjørge Sæther" <bjorge@hahaha_itte.no> wrote in message
> news:WMaPb.2530$hd.45619@news2.e.nsc.no...
>
>> If there was no variant type, one would probably create one for
>> oneself (not all of us, but...). They're exactly like the untyped
>> constant parameters, who definately serve a purpose when you want to
>> keep coding simple.
>
> Since TP days there has been tVarRec.
Right. TVarRec (used with 'array of const') and TVarData (used with
variants) are more or less identical, only "backwards"). The differences are
in compiler's handling (conversion, ref.counting, etc.).
[-> So, mr. French, do you also abandon the (good ?) ol' 'array of const' ?]
One may discuss the possible problem with coding with variants vs. the
benefits. Back in the pre-GHz-days, performance was an argument alone. A
simple variant assignment may include 100's of instructions. But there are
occasions where passing "data with type information" is useful. Then you
*know* you can't take anything for granted, and e.g. using strings isn't
necessarily safer or simpler.
-- Regards, Bjørge Sæther bjorge@haha_itte.no ------------------------------------- I'll not spend any money on American Software products until armed forces are out of Iraq.
- Next message: Bjørge Sæther: "Re: Invalid variant type conversion"
- Previous message: jimmy: "MDI in DLL"
- In reply to: Bruce Roberts: "Re: Invalid variant type conversion"
- Next in thread: J French: "Re: Invalid variant type conversion"
- Reply: J French: "Re: Invalid variant type conversion"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|