Re: Moving from C++ to VC++
- From: "Hendrik Schober" <SpamTrap@xxxxxx>
- Date: Thu, 16 Jun 2005 13:30:03 +0200
William DePalo [MVP VC++] <willd.no.spam@xxxxxxxx> wrote:
> "Bo Persson" <bop@xxxxxx> wrote in message
> news:OSN7UBecFHA.2128@xxxxxxxxxxxxxxxxxxxxxxx
> > Now I want a reasonable sized variable, let's see
> >
> > char - no, too short
> > short - no, too short :-)
> > int - no, too short
> > long - no, too short as well
> >
> > Now what?
>
> I hear you. I do. Really. :-)
>
> Frankly, in your shoes I'd just write use a typedef equivalent to __int64
> :-(
And herd a dozen such hacks on the dozens
of platforms you have to support? Plus hunt
all those definitions down when 128bit
processors appear? No, thanks.
> I have no good and objective reason to believe this, but I can't help
> thinking that at some point in the future that those who think long and hard
> on language issues will finally realize that this short/int/long _stuff_ has
> long passed its usefulness. Maybe then C++ will get types with guaranteed
> sizes like Java had a decade ago. Geez, how long ago was it that even
> Fortran had Int2, Int4, Real4 and Real8?
<mantra>
If I want "the longest integer available on
the platform, how does 'int64_t' help?
</mantra>
> Regards,
> Will
Schobi
--
SpamTrap@xxxxxx is never read
I'm Schobi at suespammers dot org
"Coming back to where you started is not the same as never leaving"
Terry Pratchett
.
- Follow-Ups:
- Re: Moving from C++ to VC++
- From: Doug Harrison [MVP]
- Re: Moving from C++ to VC++
- References:
- Moving from C++ to VC++
- From: NoName
- Re: Moving from C++ to VC++
- From: Hendrik Schober
- Re: Moving from C++ to VC++
- From: Doug Harrison [MVP]
- Re: Moving from C++ to VC++
- From: Hendrik Schober
- Re: Moving from C++ to VC++
- From: Doug Harrison [MVP]
- Re: Moving from C++ to VC++
- From: Bo Persson
- Re: Moving from C++ to VC++
- From: Doug Harrison [MVP]
- Re: Moving from C++ to VC++
- From: Bo Persson
- Re: Moving from C++ to VC++
- From: Doug Harrison [MVP]
- Re: Moving from C++ to VC++
- From: Hendrik Schober
- Re: Moving from C++ to VC++
- From: Doug Harrison [MVP]
- Re: Moving from C++ to VC++
- From: Bo Persson
- Re: Moving from C++ to VC++
- From: William DePalo [MVP VC++]
- Re: Moving from C++ to VC++
- From: Bo Persson
- Re: Moving from C++ to VC++
- From: William DePalo [MVP VC++]
- Re: Moving from C++ to VC++
- From: Bo Persson
- Re: Moving from C++ to VC++
- From: William DePalo [MVP VC++]
- Re: Moving from C++ to VC++
- From: Victor Bazarov
- Re: Moving from C++ to VC++
- From: William DePalo [MVP VC++]
- Re: Moving from C++ to VC++
- From: Victor Bazarov
- Re: Moving from C++ to VC++
- From: William DePalo [MVP VC++]
- Re: Moving from C++ to VC++
- From: Bo Persson
- Re: Moving from C++ to VC++
- From: William DePalo [MVP VC++]
- Moving from C++ to VC++
- Prev by Date: Re: Moving from C++ to VC++
- Next by Date: Re: Moving from C++ to VC++
- Previous by thread: Re: Moving from C++ to VC++
- Next by thread: Re: Moving from C++ to VC++
- Index(es):
Relevant Pages
|