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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c6ca9cbe17b867c4 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!news2.telebyte.nl!news-fra1.dfn.de!newsfeed.hanau.net!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: access & address Date: Thu, 14 Oct 2004 20:17:26 +0200 Organization: AdaCL Message-ID: <1982479.VT7X1MC7VE@linux1.krischik.com> References: <1c2f5137.0410140105.66fdb23e@posting.google.com> <1347924.5V7QhTSfdI@linux1.krischik.com> <2t7jm8F1sp752U1@uni-berlin.de> Reply-To: krischik@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1097778193 03 25177 ZjHRXC0r-bPaLxU 041014 18:23:13 X-Complaints-To: usenet-abuse@t-online.de X-ID: JTjKaaZA8eOqhbTwf95IJyot5gk4R649qNUO7Ym1bq6m5bjwZB8hY9 User-Agent: KNode/0.8.0 Xref: g2news1.google.com comp.lang.ada:5216 Date: 2004-10-14T20:17:26+02:00 List-Id: Marc A. Criley wrote: > "Xenos" wrote: >> >> "Martin Krischik" wrote in message >> news:1347924.5V7QhTSfdI@linux1.krischik.com... >> > Unlike C/C++ where you can't switch type safety on even when you >> desperately >> > need it. >> > >> You obviously know nothing about C++ then. > > Despite years now of professional programming with C++, I must've missed > the compiler option that tells the compiler to verify that scalar types > are not being confused. > Don't tell me I can write a class to make this check, no one writes > classes > to keep track of item counts. Actually I did! An Ada::Range template. Most used type is "Ada::Natural" since most C++ programmers can't even get int and unsigned right and sadly they do write libraries I have to use. There is of corse a weekness: typedef Ada::Range Month; typedef Ada::Range US_Hours; And please: I know I could use classes. But that is just another ugly hack! And why must save and secure be an ugly hack? With Regards Martin -- mailto://krischik@users.sourceforge.net http://www.ada.krischik.com