home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- From: raph@panache.demon.co.uk (Raphael mankin)
- Path: sparky!uunet!pipex!demon!panache.demon.co.uk!raph
- Subject: Re: Moving from Pascal to C, Help please!!!!!!
- Distribution: world
- References: <1993Jan10.003223.21578@leland.Stanford.EDU>
- Organization: Solvfield Ltd.
- Reply-To: raph@panache.demon.co.uk
- X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
- Lines: 20
- Date: Sun, 10 Jan 1993 21:59:27 +0000
- Message-ID: <726703167snz@panache.demon.co.uk>
- Sender: usenet@demon.co.uk
-
- Just for the record. I've been programming now for 30 years, writing
- compilers operating systems, network management, modem firmware, and name
- and address label printing programs. Over that time I've learnt the virtues
- of virtue.
-
- On the topic of pointers; if you regard a pointer purely as an object reference
- and not as a machine address ('object' here has nothing to do with OOP) then you
- will not go far wrong. My experience is that a vast proportion of programming
- errors (not design errors) are pointer faults of some sort -- and I'm not
- referring just to my own code. I would class pointer modification as a kind
- of dynamic unstructuredness, just as uncontrolled GOTOs are a static
- unstructuredness.
-
- The remarks in K&R about using pointer modification to obtain a 'more
- efficient' subscripting predate the advent of optimising C compilers. You can
- now get compilers that will do strength reduction on you subscripts, so let
- the compiler do the hard work so keep your code clear and simple for the
- human reader.
- --------------
- Raphael Mankin Nil taurus excretum
-