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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,93a8020cc980d113 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news.glorb.com!news.cs.univ-paris8.fr!proxad.net!proxad.net!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Newsgroups: comp.lang.ada Subject: Re: What is wrong with Ada? From: Georg Bauhaus In-Reply-To: <1321sobac3rfsd1@corp.supernews.com> References: <131pv6rmhhj51be@corp.supernews.com> <131tsgap1cbhd0c@corp.supernews.com> <1176455010.6753.12.camel@localhost.localdomain> <1321sobac3rfsd1@corp.supernews.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1176742083.8013.28.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Date: Mon, 16 Apr 2007 18:48:03 +0200 Organization: Arcor NNTP-Posting-Date: 16 Apr 2007 18:43:01 CEST NNTP-Posting-Host: 7f1dedb5.newsspool2.arcor-online.net X-Trace: DXC=jV96hC<86^D@k=MdN::NBIA9EHlD;3YcB4Fo<]lROoRA8kF On Sat, 2007-04-14 at 10:28 -0500, Jason King wrote: > e.g. > create type address_t ( -- new object type > address1 varchar2(50), > address2 varchar2(50), > city varchar2(30), > state varchar2(3), > zip varchar2(9), > country varchar2(3) > -- we could define methods as well as members > ); > create table contacts ( > name varchar2(50), > address address_t > ); Given all these possibilities (but even with only enough basic data types), I think there might be an interesting way to store (tagged) program objects in a DB and make use of the new Ada.Tags.Generic_Dispatching_Constructor. The effect would be a straightforward function that delivers objects of suitable type based on (a) search results and (b) program need.