• 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: problem with -Wunreachable-code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with -Wunreachable-code


  • Subject: Re: problem with -Wunreachable-code
  • From: Gwynne <email@hidden>
  • Date: Sat, 22 Jul 2006 18:56:13 -0400

On Jul 22, 2006, at 6:10 PM, Eric Albert wrote:
Change this line:
#define __assert(e, file, line) \
((void)printf ("%s:%u: failed assertion `%s'\n", file, line, e), abort(), 0)
to
#define __assert(e, file, line) \
((void)printf ("%s:%u: failed assertion `%s'\n", file, line, e), abort())
Does anyone at Apple care about the laughable typography in that line? The back-quote character is not a left apostrophe, nor is the apostrophe a right apostrophe. Nor in most fonts do they resemble each other. (I know this is probably an ancient Unixism, but hopefully we're more aesthetic now.)
I'm not sure it matters too much -- this isn't exactly a string any normal user should ever see -- but you can certainly file a bug on it and see what happens. I don't know where the backtick thing comes from in Unix's history, but I've always wondered about it. It seems strange to me too.

In the fonts used by most of the old VT terminals, backtick looked enough like a left apostrophe and apostrophe enough like a right apostrophe for them to be used in that context. Back in those days, high-ASCII was either unheard of or utterly taboo, so there were no actual ‘ and ’ characters to work from. UNIX is stuffed to the brim with ancient things like this, and you have to admire to some extent the ingenuity they had. You also have to be horrified at the modern world's inability to change things like that out of some sense of nostalgia.


-- Gwynne, daughter of the Code
"This whole world is an asylum for the incurable." _______________________________________________
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: problem with -Wunreachable-code
      • From: "Sean McBride" <email@hidden>
References: 
 >problem with -Wunreachable-code (From: "James W. Walker" <email@hidden>)
 >Re: problem with -Wunreachable-code (From: "Sean McBride" <email@hidden>)
 >Re: problem with -Wunreachable-code (From: Eric Albert <email@hidden>)
 >Re: problem with -Wunreachable-code (From: "Sean McBride" <email@hidden>)
 >Re: problem with -Wunreachable-code (From: Eric Albert <email@hidden>)
 >Re: problem with -Wunreachable-code (From: David Dunham <email@hidden>)
 >Re: problem with -Wunreachable-code (From: Eric Albert <email@hidden>)

  • Prev by Date: Re: problem with -Wunreachable-code
  • Next by Date: Re: Setting up searches in Xcode
  • Previous by thread: Re: problem with -Wunreachable-code
  • Next by thread: Re: problem with -Wunreachable-code
  • Index(es):
    • Date
    • Thread