• 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: Newbie question about _NSSize and NSSize
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie question about _NSSize and NSSize


  • Subject: Re: Newbie question about _NSSize and NSSize
  • From: "Clark Cox" <email@hidden>
  • Date: Mon, 27 Aug 2007 14:51:20 -0700

On 8/27/07, John C. Randolph <email@hidden> wrote:
>
> On Aug 27, 2007, at 9:57 AM, Clark Cox wrote:
>
> > On 8/27/07, John Stiles <email@hidden> wrote:
> >> BTW, one reason that this might be confusing is that C++ changed the
> >> rules in this regard. In C++, the leading "struct" before a struct-
> >> name was made unnecessary. So in C++, "_NSSize x" and "NSSize x"
> >> really do mean the same thing.
> >>
> >> And honestly, few people these days really learn straight C. Most of
> >> us learn C++ syntax, even if you never learn about classes and member
> >> functions. I mean, really, who doesn't like // comments?
> >
> > A minor nit: as of C99, "//" comments *are* straight C :)
>
> Are you sure?  I thought that was adopted in C89.

Positive. Many C89 compilers accepted them as an extension, especially
those that were also C++ compilers (gcc, MSVC++, CodeWarrior, etc.),
but they weren't part of the standard until C99.

>From the comp.lang.c FAQ <http://www.c-faq.com/misc/nestcomment.html>:
    Note also that // comments have only become legal in C as of C99.

--
Clark S. Cox III
email@hidden
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Newbie question about _NSSize and NSSize (From: "Frank Bettger" <email@hidden>)
 >Re: Newbie question about _NSSize and NSSize (From: "Paulo F. Andrade" <email@hidden>)
 >Re: Newbie question about _NSSize and NSSize (From: "Frank Bettger" <email@hidden>)
 >Re: Newbie question about _NSSize and NSSize (From: John Stiles <email@hidden>)
 >Re: Newbie question about _NSSize and NSSize (From: "Clark Cox" <email@hidden>)
 >Re: Newbie question about _NSSize and NSSize (From: "John C. Randolph" <email@hidden>)

  • Prev by Date: Re: NSTask setStandardOutput: then stringWithContentsOfFile gives empty string
  • Next by Date: Re: Newbie question about _NSSize and NSSize
  • Previous by thread: Re: Newbie question about _NSSize and NSSize
  • Next by thread: Re: Newbie question about _NSSize and NSSize
  • Index(es):
    • Date
    • Thread