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=0.7 required=5.0 tests=BAYES_00,MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,577df5d4a0e88785 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-12-11 19:00:10 PST Path: supernews.google.com!sn-xit-02!supernews.com!newsfeed.mesh.ad.jp!newsfeed.direct.ca!look.ca!logbridge.uoregon.edu!news.maxwell.syr.edu!nntp2.deja.com!nnrp1.deja.com!not-for-mail From: Robert Dewar Newsgroups: comp.lang.ada Subject: Re: constant string array Date: Tue, 12 Dec 2000 02:53:13 GMT Organization: Deja.com - Before you buy. Message-ID: <9143un$fev$1@nnrp1.deja.com> References: <910u3p$v9j$1@nnrp1.deja.com> <3A3445A8.8FC404D5@acm.org> <912ut9$fga$1@nnrp1.deja.com> NNTP-Posting-Host: 205.232.38.240 X-Article-Creation-Date: Tue Dec 12 02:53:13 2000 GMT X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; I) X-Http-Proxy: 1.0 x64.deja.com:80 (Squid/1.1.22) for client 205.232.38.240 X-MyDeja-Info: XMYDJUIDrobert_dewar Xref: supernews.google.com comp.lang.ada:2966 Date: 2000-12-12T02:53:13+00:00 List-Id: In article , "Ken Garlington" wrote: > "Robert Dewar" wrote in message > news:912ut9$fga$1@nnrp1.deja.com... > > : You can get some feeling for this by supposing that someone > : looking at the above code decides to replace > : > : A : boolean; > : > : by > : > : type motor_status is (on, off); > : a : motor_status; > : > : with a revision history saying > : > : use ON/OFF for motor status instead of True/False, makes > : code clearer. > : > : Now the spelled out version is easily fixed, the compact > : one line "trick" version no longer works. > > Of course, if the underlying representation is important (0 for False, 1 for > True), you may have broken some other things as well... Well such a dependence not properly documented is a pretty ugly thing. After all your paragraph above assumes you are using nasty low level stuff, and such low level stuff should be well documented and well isolated :-) Sent via Deja.com http://www.deja.com/ Before you buy.