Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Different types to ?:

Reply
Thread Tools

Different types to ?:

 
 
Nils Petter Vaskinn
Guest
Posts: n/a
 
      08-25-2003
On Fri, 22 Aug 2003 11:34:35 -0400, Ron Natalie wrote:

>
> "Nils Petter Vaskinn" <> wrote in message
>> Well yes, when I think about it, but I guess that was only meant to
>> illustrate the problem, replace the zeros with something else like 1.23
>> and you get the problem we're talking about.
>>

> In that case the program is ill-formed. There must be an unambiguous
> type to that expression that does not depend on what the test argument
> is.


Yes, and if you had followed the discussion the original question was WHY
this was the case, and it couldn't be determined dynamically at runtime.
The most convincing argument (IMHO) beeing that it would be too expensive
(runtime performance wise) compared to the benefit (me using one less if
statement).

regards
NPV
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Different behaviour in different struct declaration types __PaTeR C Programming 7 01-01-2009 12:13 AM
Can XSD simple types be derived from complex types? Soren Kuula XML 2 12-01-2005 07:51 PM
Where are ref types that are members of value types stored? Sathyaish ASP .Net 2 05-22-2005 07:32 PM
Boost + Python C/API: Mixing python return types with boost return types Steve Knight Python 2 10-10-2003 10:11 AM
STD types vs C++ intrinsic types Jeremy Cowles C++ 5 08-19-2003 05:33 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57