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,92471489ebbc99c6 X-Google-Attributes: gid103376,public From: dewarr@my-dejanews.com Subject: Re: Y2K Issues Date: 1998/10/31 Message-ID: <71dott$cm0$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 406856641 References: <71aejn$ped$1@nnrp1.dejanews.com> <71ckkt$n4a$1@nnrp1.dejanews.com> X-Http-Proxy: 1.0 x2.dejanews.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Sat Oct 31 01:25:18 1998 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/2.02 (OS/2; I) Date: 1998-10-31T00:00:00+00:00 List-Id: In article <71ckkt$n4a$1@nnrp1.dejanews.com>, dennison@telepath.com wrote: > In article , > stt@houdini.camb.inmet.com (Tucker Taft) wrote: > > > (FWIW, from my point of view, the fact that the code for such > > grand-children is likely to be implementation-specific doesn't seem like > > enough of a reason to disallow them, since the whole point may be to provide > > a stable interface to some additional functionality via a > > grand-child, recognizing that the implementation of the functionality may > > need to be revised when porting to a new compiler or new release. Clearly > > the "caveat emptor" is critical here.) > > It sure would have helped me a lot a few days ago if I could have made my > package Ada.Real_Time.Float_Conversions, instead of > Real_Time_Float_Conversions. Apparently Green Hills decided to disallow > children of their pacakges. My implementation of this package is *still* > dependent on their implementation of Ada.Real_Time.Time_Span. Its just that I > was forced to do Unchecked_Conversions to accomplish it. (I feel so dirty!) > And now when their implementation does change, I might not notice until > runtime. If they'd let me make a child package I could have gotten a compile > error when the implemetation changes. You cannot count on having got a compile error if the implementation changes. You might or might not. Just as your unchecked conversion might have got a warning if the sizes were different (I assume your compiler provides this important warning). If using unchecked_conversion makes you feel dirty, then compiling grandchildren of Ada that depend on private data structures should make you equally queasy, if not more so! Robert Dewar -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own