• 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: [OT] Re: [ANN] Cocoa Style for ObjC: 1 and 2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [OT] Re: [ANN] Cocoa Style for ObjC: 1 and 2


  • Subject: Re: [OT] Re: [ANN] Cocoa Style for ObjC: 1 and 2
  • From: The Amazing Llama <email@hidden>
  • Date: Wed, 27 Oct 2004 13:15:14 -0700

On Oct 27, 2004, at 12:49 AM, Steve Checkoway wrote:
One problem with doing the
int* foo;
is it can byte you if you try to do
int* foo, bar;
and expect that you have two pointers to integers. I have seen experienced programmers get bitten by that.

So don't do that. Don't declare multiple vars on the same line; it's harder to read.

I put the * after they type, because what I'm declaring is not an int, but a pointer to an int. So the type "area" should reflect that.

Seth A. Roby The Amazing Llama < mail or AIM me at tallama at mac dot com>
"Life is like an exploded clown. It's really funny until you figure out what just happened."

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

This email sent to email@hidden
References: 
 >[ANN] Cocoa Style for ObjC: 1 and 2 (From: Scott Stevenson <email@hidden>)
 >Re: [ANN] Cocoa Style for ObjC: 1 and 2 (From: Marco Scheurer <email@hidden>)
 >Re: [ANN] Cocoa Style for ObjC: 1 and 2 (From: Scott Stevenson <email@hidden>)
 >Re: [ANN] Cocoa Style for ObjC: 1 and 2 (From: Keith Anderson <email@hidden>)
 >[OT] Re: [ANN] Cocoa Style for ObjC: 1 and 2 (From: Graham cox <email@hidden>)
 >Re: [OT] Re: [ANN] Cocoa Style for ObjC: 1 and 2 (From: Steve Checkoway <email@hidden>)

  • Prev by Date: Re: [ANN] Cocoa Style for ObjC: 1 and 2
  • Next by Date: Re: Cocoa Java futures, NDA's etc
  • Previous by thread: Re: [OT] Re: [ANN] Cocoa Style for ObjC: 1 and 2
  • Next by thread: Re: [OT] Re: [ANN] Cocoa Style for ObjC: 1 and 2
  • Index(es):
    • Date
    • Thread