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: f891f,9d58048b8113c00f X-Google-Attributes: gidf891f,public X-Google-Thread: 1014db,9d58048b8113c00f X-Google-Attributes: gid1014db,public X-Google-Thread: 103376,2e71cf22768a124d X-Google-Attributes: gid103376,public X-Google-Thread: 10cc59,9d58048b8113c00f X-Google-Attributes: gid10cc59,public From: dweller@dfw.net (David Weller) Subject: Re: next "big" language?? (disagree) Date: 1996/06/11 Message-ID: <4pjnki$8k7@dfw.dfw.net>#1/1 X-Deja-AN: 159596271 references: <4p3nqb$k4a@btmpjg.god.bel.alcatel.be> <4p3nto$k4a@btmpjg.god.bel.alcatel.be> <4pj7e0$fat@goanna.cs.rmit.EDU.AU> organization: DFWNet -- Public Internet Access newsgroups: comp.lang.ada,comp.lang.pascal,comp.lang.c,comp.lang.misc Date: 1996-06-11T00:00:00+00:00 List-Id: In article <4pj7e0$fat@goanna.cs.rmit.EDU.AU>, ++ robin wrote: >---One of the problems of using rigid facilities -- amply >illustrates my point. Arrays don't often have fixed sizes. >The size depends on the problem. One day, it might be 10, >next day, 300, day after, 90. > > Are you seriusly suggesting that EACH time the program >is run that it be edited and recompiled? And what >happens -- as is often the case -- the size of the array >changes DURING the run? If this is your belief, then you are SERIOUSLY missing the point. If you have software where the array size MIGHT change, then you write your software to support that. You MIGHT decide to make the array size a constant and recompile when needed (it's a valid choice, although not one I'd make), you also MIGHT allow your array to grow as more things are added to it. These things are easy to handle. The point of the discussion, however, was situations where you indexed outside an array, which is so damn easy in C that EVERY book I've seen in C says, "be careful not to do this!" There is a VERY considerable difference between adding something to an array in a manner such that the array size grows with the addition, and indexing outside an array, such that you're now lost in the middle of memory-land and can't figure out why your program gives (most likely) unrepeatable errors. -- Visit the Ada 95 Booch Components Homepage: www.ocsystems.com/booch This is not your father's Ada -- lglwww.epfl.ch/Ada