Re: Moving from C++ to VC++

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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


.



Relevant Pages

  • Re: 0xdeadbeef vs 0xdeadbeefL
    ... I write portable ISO C source ... My code has been built on dozens and dozens of ... On many platforms a "plain" char is unsigned. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: Steve Jobs: Funniest line of the decade
    ... nospam wrote: ... Do you know how many software companies are going to develop free ... apps customized for each of dozens of different platforms? ...
    (rec.photo.digital)
  • Re: Template and Copy constructor
    ... > of how many platforms you consider important. ... > not a common scenario. ... > several compilers is already a good way to diagnose portability issues. ... I'm Schobi at suespammers dot org ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Steve Jobs: Funniest line of the decade
    ... nospam wrote: ... Do you know how many software companies are going to develop free ... apps customized for each of dozens of different platforms? ...
    (rec.photo.digital)
  • Re: Restricting SSH authentication methods based on IP
    ... I need a way to restrict connection ... ... There are dozens of SSH implementations, ... platforms. ...
    (comp.security.ssh)