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,42e401e32683b965 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!feeder.erje.net!newsfeed.freenet.ag!news.netcologne.de!ramfeed1.netcologne.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: A new notion: stronglly-typed-by-user language Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: Date: Thu, 15 Apr 2010 11:59:33 +0200 Message-ID: NNTP-Posting-Date: 15 Apr 2010 11:59:30 CEST NNTP-Posting-Host: bc0a1fdb.newsspool1.arcor-online.net X-Trace: DXC=\3:@6XD0ZP[@>[RYkFXOIPic==]BZ:af^4Fo<]lROoRQ<`=YMgDjhgRZFm4oJHSm]Z[6LHn;2LCV^[ On Thu, 15 Apr 2010 10:59:37 +0200, J-P. Rosen wrote: > While preparing the upcomming "Using Object Oriented Technologies in > Secure Systems" tutorial for Ada-Europe (plug, plug...), I came across > this beautiful statement (OOTiA, B.1.1.6): > > "C++ is a strongly typed language, if conversions between logically > unrelated types are avoided". > > Ain't that cute? Well, strong typing is unrelated to type conversions, so the sentence above is nonsense. Actually, *logically* (meaning semantically) unrelated types can be mixed without any conversions: int ArrayIndex; int EmployeeID; Employee_ID = Arraj_Index: The question is whether a strongly typed language is designed in order to support and encourage mapping logically unrelated entities onto physically unrelated types or not. Ada more or less is, C++ more or less is not. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de