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: Sat, 22 Sep 2001 22:54:22 +0200
John,
>
>>>>> John Hornkvist (JH) wrote at Fri, 21 Sep 2001 20:33:36 +0200:
JH> You need to put an asterisk after the class name;
JH>
JH> NSView* myView;
I would beg to differ in opinion. The variant "NSView *myView" is IMHO much
more sensible, since it hints that the '*' is linked to the "myView" and not
to the "NSView" (which is, as you surely know, how the C language interprets
types).
NSView* a,b,c; // quite confusing!!!!
NSview *a,b,c; // hints what really happens
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc