Re: Is pointer syntax logical?
Re: Is pointer syntax logical?
- Subject: Re: Is pointer syntax logical?
- From: "Juan Nunez-Iglesias" <email@hidden>
- Date: Thu, 26 Jul 2007 03:11:46 -0700
So my question is why the syntax for pointers looks like it does. Is there any logical explanation.
Hey Bob,
I've felt the same way since I first learned C years ago. As far as I
can see the only benefit to writing in K&R(& everyone else) style is
when declaring variables serially, e.g. int i = 0, j=0, *a, *b; But I
always actually put the little star next to the type, ie int* a, * b;
Makes more sense to me, and it's perfectly correct.
Alternatively you could develop in C++ where you can use references
and make rare use of pointers. But in Cocoa it's pointers all the way.
Juan.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden