Re: static typing (Learning Cocoa Chapter 13)
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