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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,84bf0ec36cf20893 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-17 10:35:41 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsmi-us.news.garr.it!NewsITBone-GARR!area.cu.mi.it!news.mailgate.org!fr.clara.net!heighliner.fr.clara.net!freenix!wanadoo.fr!not-for-mail From: Pascal Obry Newsgroups: comp.lang.ada Subject: Re: Would an *AdaScript* language be a good / bad idea? Date: 17 May 2002 19:35:39 +0200 Organization: Home - http://perso.wanadoo.fr/pascal.obry Message-ID: References: <5ee5b646.0205140618.2d789fc9@posting.google.com> <5ee5b646.0205151846.4b14a73f@posting.google.com> <3CE3D8B4.C272C737@san.rr.com> <3CE3EA03.394B3EA@despammed.com> <3CE3FFE7.775E5103@san.rr.com> <3CE514CD.DC9C679@despammed.com> <3CE52E77.FC3FC588@san.rr.com> NNTP-Posting-Host: avelizy-103-1-3-10.abo.wanadoo.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: wanadoo.fr 1021656940 9206 217.128.47.10 (17 May 2002 17:35:40 GMT) X-Complaints-To: abuse@wanadoo.fr NNTP-Posting-Date: 17 May 2002 17:35:40 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:24298 Date: 2002-05-17T17:35:40+00:00 List-Id: Stephen Leake writes: > Darren New writes: > > > Write a piece of Ada code that declares a new type at run-time > > based on a user's input, perhaps a derived type of a tagged type, and loads > > it into the currently running program, instantiates it, and sticks it into > > an array of heterogenous objects all derived from that type, dynamically > > dispatching to them. Note that "stop everything, rewrite the program, > > recompile, and start up again" is not acceptable. > > Right, Ada is not designed for this. Although the distributed annex > comes close; you could change out a partition without restarting the > other partitions. I'm not sure this is true. To use this object the type must be known at _compile_ time. Darren said "a new type at run-time", and to this question I would answer no. The distributed annexe does not help here. Pascal. -- --|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://perso.wanadoo.fr/pascal.obry --| "The best way to travel is by means of imagination" --| --| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595