[gameprogrammer] Re: A Note on C Programming Style
- From: "Etali" <etali@xxxxxxxxxxxxxx>
- To: <gameprogrammer@xxxxxxxxxxxxx>
- Date: Fri, 6 May 2005 10:54:00 +0100
----- Original Message -----
From: "Alan Wolfe" <alan.wolfe@xxxxxxxxx>
To: <gameprogrammer@xxxxxxxxxxxxx>
Sent: Thursday, May 05, 2005 9:52 PM
Subject: [gameprogrammer] Re: A Note on C Programming Style
> Wes you are the only person that i have talked to that sees the value
> of char *p instead of char* p.
>
> my hat is off to you (:
>
I've been programming 'self taught' for a number of years, and recently went
to Uni to learn it all 'officially'
I'm of the char *p school myself - my lecturer insists on char* p because a)
that's keeping all the bits of the type declaration together, and b) that
discourages multiple declarations on one line (he thinks that's messy).
After so many years of doing it the other way, it is so confusing to have to
do it his way.
I don't see why pointers are confusing. I see why they're annoying when
they go wrong, and a pain to debug, but not why the basic idea of what a
pointer is and does is confusing.
I'd be interested to hear what other people think and how they found it when
they were first learning.
--
Etali
http://www.myth-games.com
http://www.myth-games.com/forum
---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html
- Follow-Ups:
- [gameprogrammer] Re: A Note on C Programming Style
- From: Bob Pendleton
- References:
- [gameprogrammer] A Note on C Programming Style
- From: Chris Nystrom
- [gameprogrammer] Re: A Note on C Programming Style
- From: Wes Wannemacher
- [gameprogrammer] Re: A Note on C Programming Style
- From: Alan Wolfe
Other related posts:
- » [gameprogrammer] A Note on C Programming Style
- » [gameprogrammer] Re: A Note on C Programming Style
- » [gameprogrammer] Re: A Note on C Programming Style
- » [gameprogrammer] Re: A Note on C Programming Style
- » [gameprogrammer] Re: A Note on C Programming Style
- » [gameprogrammer] Re: A Note on C Programming Style
- » [gameprogrammer] Re: A Note on C Programming Style
- » [gameprogrammer] Re: A Note on C Programming Style
- » [gameprogrammer] Re: A Note on C Programming Style
- » [gameprogrammer] Re: A Note on C Programming Style
- » [gameprogrammer] Re: A Note on C Programming Style
- » [gameprogrammer] Re: A Note on C Programming Style
- » [gameprogrammer] Re: A Note on C Programming Style
- » [gameprogrammer] Re: A Note on C Programming Style
- » [gameprogrammer] Re: A Note on C Programming Style
- » [gameprogrammer] Re: A Note on C Programming Style
- » [gameprogrammer] Re: A Note on C Programming Style
- » [gameprogrammer] Re: A Note on C Programming Style
- » [gameprogrammer] Re: A Note on C Programming Style
- » [gameprogrammer] Re: A Note on C Programming Style
- » [gameprogrammer] Re: A Note on C Programming Style
- » [gameprogrammer] Re: A Note on C Programming Style
- [gameprogrammer] Re: A Note on C Programming Style
- From: Bob Pendleton
- [gameprogrammer] A Note on C Programming Style
- From: Chris Nystrom
- [gameprogrammer] Re: A Note on C Programming Style
- From: Wes Wannemacher
- [gameprogrammer] Re: A Note on C Programming Style
- From: Alan Wolfe