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,c7d533acec91ae16 X-Google-Attributes: gid103376,public From: RSWhite@nospam.somewhere.ia.us (Robert S. White) Subject: Re: Question for the folks who designed Ada95 Date: 1999/04/29 Message-ID: <7g8drh$1q00$1@odie.mcleod.net>#1/1 X-Deja-AN: 472111877 References: <7g2qu4$ca4$1@usenet.rational.com> <37278218.ADE17A46@lawson.com> <7g8390$225c@drn.newsguy.com> Content-Type: Text/Plain; charset=US-ASCII X-Complaints-To: admin@mcleod.net X-Trace: odie.mcleod.net 925350577 59392 208.16.41.185 (29 Apr 1999 01:49:37 GMT) Organization: ... Mime-Version: 1.0 NNTP-Posting-Date: 29 Apr 1999 01:49:37 GMT Newsgroups: comp.lang.ada Date: 1999-04-29T01:49:37+00:00 List-Id: In article <7g8390$225c@drn.newsguy.com>, bill@nospam says... > >All what we know, is that looking at something written as a[i] tells >right away that it is an array, while with a(i) you are not sure what >it is in Ada. And just why do you need to know the implementation when you are just an oo user of the object? Can we say "loosely coupled" here? >If Iam maintaining someone else's code, it helps me to understand the code >faster that way. Ah but a maintainer _hopefully_ has a smart editor/browser that knows how to quickly pop up the body's source text - like "visit body" under Rational Apex. >Someone argument about them modifying the array to a function and not breaking >someone else code (becuase in Ada "()" is used instead of "[]") is a >very weak argument. But, but, IMHO it is a good argument! The users of the object/package don't have to edit their source code when the implementation changes. No module version control check outs, edits, check ins, code inspections, etc. Just a new full up link and integration/regression tests are required. A lot less staff effort and expense! > In the real world, one would design their data to >be hidden from users, and have access methods to read/write to it, (can we >says OO here?) and so, users would never care if you used arrays or >functions anyway. you should use 'messages' :) Nope...don't use "messages", instead just use accessor functions. Seems like my "real world" and yours differs :) _____________________________________________________________________ Robert S. White -- An embedded systems software engineer e-mail reply to reverse of ( add .'s ): net mcleodusa shift2 r white or do a "Reply To All" for direct eMailed cc'd followups.