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: a07f3367d7,42e401e32683b965 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!goblin1!goblin2!goblin.stu.neva.ru!feeder3.cambriumusenet.nl!feed.tweaknews.nl!87.79.20.105.MISMATCH!news.netcologne.de!ramfeed1.netcologne.de!newsfeed.arcor.de!newsspool1.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: <37p79j7nw4ep.9f8pem1g4f7l$.dlg@40tude.net> Date: Sat, 17 Apr 2010 16:09:24 +0200 Message-ID: NNTP-Posting-Date: 17 Apr 2010 16:09:23 CEST NNTP-Posting-Host: d9a83161.newsspool1.arcor-online.net X-Trace: DXC=1?O_dRi>?>d[F<50eo:0knic==]BZ:afn4Fo<]lROoRa<`=YMgDjhgbE>BTRb^`4fk[6LHn;2LCVn[ On Sat, 17 Apr 2010 13:40:23 +0200, J-P. Rosen wrote: > My point is that two objects are of the same type if they represent the > same abstraction. This is true of T and T'Base. No, this is certainly untrue. T'Base rather represents a quite arbitrary machine-dependent type chosen by the compiler. It may or may not fir the abstraction of T. Consider: type Angle is digits 5 range 0.0..360.0; X : Angle'Base := -10.0; Putting or lifting a constraint can break abstraction. > Almost any language > behaves as if there were only one integer type (represented on various > number of bits depending on the constraints). This is somehow the > mathematical view. But since we are modelling real world object, it is > better to adopt a physicist point of view: objects have dimensions, and > it makes no sense to add apples and oranges. That's what I would call > strong typing. I would call it mere typing. Strength of typing to me rather indicates how often you get a chance to add apples and orange. It is more frequent in C++ than in Ada. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de