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-Thread: 103376,63fa88e2f1a3ebea X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news1.google.com!newsread.com!news-xfer.newsread.com!newspeer.monmouth.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed.arcor.de!news.arcor.de!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Universal type in Ada Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.14.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <1a7ughq9xrk30.1q7sknowaq5or.dlg@40tude.net> Date: Wed, 15 Jun 2005 18:48:24 +0200 Message-ID: NNTP-Posting-Date: 15 Jun 2005 18:48:12 MEST NNTP-Posting-Host: 96d259b4.newsread2.arcor-online.net X-Trace: DXC=hEMRE^_Jc_=_78OXD477\?Q5U85hF6f;4jW\KbG]kaM8FYk:AnJB[C=6I^><>f3dFY:MiJ0eT5g4f< X-Complaints-To: abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:11389 Date: 2005-06-15T18:48:12+02:00 List-Id: On Wed, 15 Jun 2005 16:37:46 +0200, Preben Randhol wrote: > "Dmitry A. Kazakov" wrote on 15/06/2005 (14:00) : >> >> type Object is abstract tagged null record; >> function Factory (...) return Object'Class; >> >> type My_Special_Object is new Object with ...; >> >> declare >> X : My_Special_Object; >> begin >> ... >> X := My_Special_Object Factory (...)); > > X := My_Special_Object (Factory (...)); > > right? Yes, of course. (:-)) -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de