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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4b06f8f15f01a568 X-Google-Attributes: gid103376,public From: Martin Dowie Subject: Re: Software landmines (was: Why C++ is successful) Date: 1998/08/25 Message-ID: #1/1 X-Deja-AN: 384596448 X-NNTP-Posting-Host: dowie-cs.demon.co.uk:193.237.34.207 References: <6rnh8p$dno$1@nnrp1.dejanews.com> <$3XHNBAxSZ41Ew4G@dowie-cs.demon.co.uk> <35E1E74D.AF98CE26@lmco.com> X-Complaints-To: abuse@demon.net X-Trace: news.demon.co.uk 904062159 nnrp-11:6733 NO-IDENT dowie-cs.demon.co.uk:193.237.34.207 MIME-Version: 1.0 Newsgroups: comp.lang.ada Date: 1998-08-25T00:00:00+00:00 List-Id: In article <35E1E74D.AF98CE26@lmco.com>, Mark A Biggar writes >Yes, there is, Pointers are the data structure equivelant of the goto statement. >Multiple aliases can get you into worse trouble then goto's any day. >At least a goto has an explisitly labeled target, while in most languages >a variable with multiple aliaes has no marking what-so-ever. Note, that >Ada is one of the few languages that requires such marking with the >"aliased" keyword. but the data structures that 'jacksonites' refer to are the 'real world' ones eg. a report might consist of a title page, plus a contents page, plus an iteration of text pages plus an iteration of index pages. also, can't see who you equate a pointer to a goto. eg type ptr is access ...; type rec is record int:integer; my_ptr:ptr; end record; here, the point forms part of a sequence. the thing a pointer points to itself has a specific structure which can be descibed in terms of sequences, selections and iterations. i would have thought a better equivilant of a pointer would be a subprogram. anyway, suffice to say that 'jacksonites' tend to be the biggest 'goto-phobes' in any office. -- Martin Dowie