Re: Newbie question about _NSSize and NSSize
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