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,826cd690cb6a7585 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!news-transit.tcx.org.uk!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: The simple Image issue Date: Wed, 31 Aug 2011 18:07:42 +0200 Organization: cbb software GmbH Message-ID: References: <904e717e-da4c-46c9-bbc2-4bae8368d459@l4g2000vbv.googlegroups.com> <4e5d139f$0$6575$9b4e6d93@newsspool3.arcor-online.net> <3756bc0c-d938-4b45-baa1-b80e59d58055@a10g2000prn.googlegroups.com> <1a879va9fjuwo.1r1b6vbp45lx5.dlg@40tude.net> <4e5dd1c1$0$6638$9b4e6d93@newsspool2.arcor-online.net> <4e5e58ee$0$2996$a8266bb1@newsreader.readnews.com> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: shCHaRa13RZKmhBx9vU9MQ.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: g2news2.google.com comp.lang.ada:21748 Date: 2011-08-31T18:07:42+02:00 List-Id: On Wed, 31 Aug 2011 11:53:17 -0400, Hyman Rosen wrote: > On 8/31/2011 2:16 AM, Georg Bauhaus wrote: >> In which way would you change T'Value for symmetry? > > You wouldn't, because the symmetry is false. When you > already have an object, being forced to name its type > is silly and redundant. When you have a string and want > it converted to an object, of course you need to say > what type it's becoming. However type conversion is another beast. If I designed the language I would support ad-hoc subtypes (ones established dynamically in some scope without implementation inheritance). E.g. in some context one could make Integer a subtype of String and just write: I : Integer; ... Put_Line ("I=" & I); Static type relationships, even with MI and MD support, are not flexible enough to handle cases like I/O, containers etc in a generic way. You need an ability to create a virtual parent for unrelated types later on to be able to have a class of these types (on order to define operations handling instances from this class). -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de