Re: A little disappointed

From: Alwyn (alwyn_at_blueyonder.co.uk)
Date: 11/28/04


Date: Sun, 28 Nov 2004 12:49:34 GMT

On Sun, 28 Nov 2004 07:33:24 +1100, David White wrote:
>
> Pointers aren't too mysterious or difficult. If you practise and experiment
> with them, you'll get more comfortable with them.

Pointers have been called 'the gotos of data' in that they introduce
pitfalls for the unwary and are a source of programming errors. I would
suggest that newcomers to C++ should avoid them as far as possible;
unfortunately, this advice can not be given to newcomers to C, where it is
hardly possible to do anything useful without them.

Alwyn



Relevant Pages

  • Re: 2D array of pointers
    ... However newcomers will find ... >vectors easier to use (no need to worry about passing them via pointers ... an array", and the best answer was to suggest the OP use a vector. ... >that I also think that pointers have no place in a book for newcomers to ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Fighting email spam and anti-UBE pointers
    ... > The information this person presents on Challenge-Responses ... I think it is important for newcomers here to state plainly what may be ... That Jari Aalto maintains several FAQS and lists of pointers that are ...
    (comp.os.linux.misc)
  • Re: Fighting email spam and anti-UBE pointers
    ... > The information this person presents on Challenge-Responses ... I think it is important for newcomers here to state plainly what may be ... That Jari Aalto maintains several FAQS and lists of pointers that are ...
    (alt.linux)
  • Re: Paper on PL/I
    ... I don't consider myself an exceptional programmer skillwise -- just one who follows the rules and is very careful and deliberate when playing with fire (using pointers) in the same way I don't point a loaded gun at anyone. ... There are even some entitled "Considered Harmful" Essays Considered Harmful or words to that effect. ... ELSE and DO UNTIL and DO WHILE constructs GOTOs were becoming a dying breed anyway. ... I once wrote a special cross reference program for a client who used a dialect of BASIC that had no IF THEN ELSE constructs so naturally the code was littered with GOTOs. ...
    (comp.lang.pl1)
  • Re: Paper on PL/I
    ... I don't consider myself an exceptional programmer skillwise -- just one who follows the rules and is very careful and deliberate when playing with fire (using pointers) in the same way I don't point a loaded gun at anyone. ... There are even some entitled "Considered Harmful" Essays Considered Harmful or words to that effect. ... But in a large program sprinkled with GOTOs, at any given label, you have no clue as to how many GOTOs have targeted it, or where they are located in the program. ...
    (comp.lang.pl1)