• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: uint64_t error and architecture targets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: uint64_t error and architecture targets


  • Subject: Re: uint64_t error and architecture targets
  • From: Quincey Morris <email@hidden>
  • Date: Fri, 11 Feb 2011 01:43:05 -0800

On Feb 11, 2011, at 00:55, Andreas Grosam wrote:

> In C++ I would prefer to write
>
> #include <limits>
> #include <stdint.h>
>
> uint64_t y = std::numeric_limits<uint64_t>::max();

Sorry, I have to admit I LOL'ed.

C++ takes:

	2 #includes
	2 operators
	1 namespace
	1 template instantiation
	1 function

to do what C does with "-1", but it does it so much *better* than C. It's a perfect example of what's wrong with C++. :)

[And, yes, I'm aware that the C-ish answer is just as bizarre, in its own C-ish way.]



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: uint64_t error and architecture targets
      • From: Andreas Grosam <email@hidden>
References: 
 >uint64_t error and architecture targets (From: Todd Heberlein <email@hidden>)
 >Re: uint64_t error and architecture targets (From: "Clark S. Cox III" <email@hidden>)
 >Re: uint64_t error and architecture targets (From: Andreas Grosam <email@hidden>)

  • Prev by Date: Re: uint64_t error and architecture targets
  • Next by Date: Re: uint64_t error and architecture targets
  • Previous by thread: Re: uint64_t error and architecture targets
  • Next by thread: Re: uint64_t error and architecture targets
  • Index(es):
    • Date
    • Thread