• 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: static typing (Learning Cocoa Chapter 13)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: static typing (Learning Cocoa Chapter 13)


  • Subject: Re: static typing (Learning Cocoa Chapter 13)
  • From: Ondra Cada <email@hidden>
  • Date: Mon, 24 Sep 2001 13:15:59 +0200

Bradley,

>>>>>> Smith, Bradley (SB) wrote at Mon, 24 Sep 2001 11:42:44 +0100:
SB> int *myIntPtr, myInt; // pointer to in and an actual int
SB>
SB> Whereas: -
SB>
SB> int* myIntPtr, myInt; // Reads like two items of type 'pointer to int'
SB>
SB> Just my preference you understand ;-)

It's a quite reasonable preference, IMHO. Even if you keep the rule one
declaration / one line (which I personally find quite clumsy, but it's in the
eye of beholder perhaps), it keeps consistency with

int (*myFncPtr)();
int *myPtr; // the same rules as above apply
int* myPtr; // looks out of order, does it not?
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc


References: 
 >RE: static typing (Learning Cocoa Chapter 13) (From: "Smith, Bradley" <email@hidden>)

  • Prev by Date: Re: Is there a decent Obj-C for Windows?
  • Next by Date: Structured storage
  • Previous by thread: RE: static typing (Learning Cocoa Chapter 13)
  • Next by thread: retaining arrays
  • Index(es):
    • Date
    • Thread