From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: *** X-Spam-Status: No, score=3.8 required=5.0 tests=BAYES_00,INVALID_MSGID, RATWARE_MS_HASH,RATWARE_OUTLOOK_NONAME autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,baaf5f793d03d420 X-Google-Attributes: gid109fba,public X-Google-Thread: fc89c,97188312486d4578 X-Google-Attributes: gidfc89c,public X-Google-Thread: 1014db,6154de2e240de72a X-Google-Attributes: gid1014db,public X-Google-Thread: 103376,97188312486d4578 X-Google-Attributes: gid103376,public From: "Tim Behrendsen" Subject: Re: What's the best language to start with? [was: Re: Should I learn C or Pascal?] Date: 1996/08/05 Message-ID: <01bb826a$b222f400$9bee6fce@timhome2>#1/1 X-Deja-AN: 172074835 references: <01bb8023$4bfe7a80$96ee6fcf@timhome2> <4u19gq$f1g@solutions.solon.com> <320433CE.6D5A@online.no> <4u1g29$hc0@solutions.solon.com> content-type: text/plain; charset=ISO-8859-1 organization: A-SIS mime-version: 1.0 newsgroups: comp.lang.c,comp.lang.c++,comp.unix.programmer,comp.lang.ada Date: 1996-08-05T00:00:00+00:00 List-Id: Peter Seebach wrote in article <4u1g29$hc0@solutions.solon.com>... > In article <320433CE.6D5A@online.no>, Alf P. Steinbach wrote: > > A lot of programmers used to habitually use a null pointer as a shortcut > for "" for string functions; you'd see > if (strcmp(s, 0)) > used like > if (strcmp(s, "")) > because it worked on some machines. This completely makes the point. Someone who knows assembly language would *never* make that mistake, because it would be so obviously wrong. You cannot program in assembly and not understand a null pointer v.s. a pointer to a zeroed memory location. -- Tim Behrendsen (tim@airshields.com)