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,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,30821ecf97416798,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-09-24 09:32:29 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!cyclone.bc.net!sjcppf01.usenetserver.com!e420r-sjo4.usenetserver.com!usenetserver.com!e420r-atl1.usenetserver.com.POSTED!not-for-mail From: "Anthony E. Glover" Newsgroups: comp.lang.ada Subject: How Can I Create A Class Dynamically X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2479.0006 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2479.0006 Message-ID: <1bJr7.11813$po4.573186@e420r-atl1.usenetserver.com> X-Complaints-To: abuse@usenetserver.com X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly. NNTP-Posting-Date: Mon, 24 Sep 2001 12:28:45 EDT Organization: WebUseNet Corp. - "ReInventing The UseNet" Date: Mon, 24 Sep 2001 11:32:17 -0500 Xref: archiver1.google.com comp.lang.ada:13293 Date: 2001-09-24T11:32:17-05:00 List-Id: I have a class hierarchy defined and I would like to be able to read a string and then dynamically creating a pointer to an object of the type specified by the string. Similar I think to class loading and class factories in Java. Can this be done in Ada95. If so, how. I have looked at the Ada.Tags packages and this looks like it might be helpfull, but I'm not quite sure how to make use of it. I would basically like to be able to avoid having to specify a case statement or if block when initially creating my objects. Thanks, Tony