• 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: 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


References: 
 >Re: static typing (Learning Cocoa Chapter 13) (From: John Hörnkvist <email@hidden>)

  • Prev by Date: Re: static typing (Learning Cocoa Chapter 13)
  • Next by Date: Re: static typing (Learning Cocoa Chapter 13)
  • Previous by thread: Re: static typing (Learning Cocoa Chapter 13)
  • Next by thread: RE: static typing (Learning Cocoa Chapter 13)
  • Index(es):
    • Date
    • Thread