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,c6150ba97747373e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-16 04:02:10 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!dialin-145-254-043-056.arcor-ip.NET!not-for-mail From: Dmitry A.Kazakov Newsgroups: comp.lang.ada Subject: Re: runtine instanciation Date: Mon, 17 Jun 2002 01:07:26 +0200 Message-ID: References: Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: dialin-145-254-043-056.arcor-ip.net (145.254.43.56) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: fu-berlin.de 1024225329 7379604 145.254.43.56 (16 [77047]) User-Agent: KNode/0.4 Xref: archiver1.google.com comp.lang.ada:26074 Date: 2002-06-17T01:07:26+02:00 List-Id: Immanuel Scholz wrote: > Hello again, > > In Ada, can create a class at runtime? Like the getClass().forClass() in > Java. > > As example create a variable from the type entered by the user at runtime. I am not sure what you want, but I suppose that Ada.Streams is what you need. In short it allows you to create a class-wide object from some external source (like user input) without a factory. Or better to say the factory is distributed over the implementations of 'Input/'Read attributes. -- Regards, Dmitry Kazakov www.dmitry-kazakov.de