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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,103b407e8b68350b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-01-06 06:13:14 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!fu-berlin.de!uni-berlin.de!p62.246.105.17.tisdip.tiscali.DE!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: RE: Anybody in US using ADA ? One silly idea.. Date: Mon, 06 Jan 2003 15:13:34 +0100 Organization: At home Message-ID: References: Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: p62.246.105.17.tisdip.tiscali.de (62.246.105.17) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: fu-berlin.de 1041862388 14805993 62.246.105.17 (16 [77047]) User-Agent: KNode/0.7.1 Xref: archiver1.google.com comp.lang.ada:32610 Date: 2003-01-06T15:13:34+01:00 List-Id: Robert C. Leif wrote: > I disagree! A very simple construct is a generic set of types and objects > that are also part of a private tagged record. This structure can be > extended and manipulated. Why to put something into anything else? Why not to have the tagged record doing everything what you want from the start? > For instance, when dealing with hardware, Intel > input-output registers and memory locations can be 8, 16, and 32 bits. A > generic is a simple way to model this. An abstract integer type with three non-abstract descendants is even more simple model. My point is that almost everything you do with generics could be done with ADT. > In fact if it were possible, I > would greatly prefer generic constructs to pointers. I must note that > generics can be instantiated at run-time and, I believe, still be located > on the heap. No need for garbage collection. Oberon.NET, which is very > new, has generics. Bob Leif -- Regards, Dmitry A. Kazakov www.dmitry-kazakov.de