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.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: border2.nntp.dca3.giganews.com!backlog4.nntp.dca3.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!ottix-news.ottix.net!newsswitch.lcs.mit.edu!nntp.TheWorld.com!.POSTED!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: a new language, designed for safety ! Date: Fri, 06 Jun 2014 15:43:37 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <3bf7907b-2265-4314-a693-74792df531d1@googlegroups.com> <51e9fd4f-e676-4d2f-9e21-1c782d71092e@googlegroups.com> <5391ffa4$0$6611$9b4e6d93@newsspool4.arcor-online.net> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls7.std.com 1402083807 20695 192.74.137.71 (6 Jun 2014 19:43:27 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Fri, 6 Jun 2014 19:43:27 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:7cwOa6zLjF9vCmeLj3SO3u8p12E= X-Original-Bytes: 2117 Xref: number.nntp.dca.giganews.com comp.lang.ada:186771 Date: 2014-06-06T15:43:37-04:00 List-Id: Niklas Holsti writes: > The error, as I understand it, is trying to convert X, which is of a > classwide type covering Pak.P2.T, to a classwide type (Pak.P3.TA'Class) > which does not cover Pak.P2.T. (Apologies if I'm not using the correct > ARM terms for this.) The dispatching call is not the problem. Right. > This error is more similar to a subtype or type conversion error, where > the source value violates the constraints of the target type. It is EXACTLY a type conversion error. The Tag is wrong, so the type conversion raises Constraint_Error. It never gets to the dispatching call. There is no dangling dispatching in Ada! It is impossible for a call to (try to) call the nonexistent body of an abstract operation. > Yes, Ada has run-time errors, but they are not the result of > "unimplemented methods". Right. - Bob