comp.lang.ada
 help / color / mirror / Atom feed
From: "Steve" <nospam_steved94@attbi.com>
Subject: How do I create an object instance from a tag?
Date: Mon, 17 Feb 2003 20:25:02 GMT
Date: 2003-02-17T20:25:02+00:00	[thread overview]
Message-ID: <yyb4a.155282$vm2.110486@rwcrnsc54> (raw)

I would like to create a function that returns a reference to a class wide
object based on the external name.  Something along the lines of:

function Create_Object( external_name : String ) return objAcc is
  returnTag : Ada.Tags.Tag;
begin
  returnTag := Ada.Tags.Internal_Tag( external_name );
  return ??? some function of returnTag ???
end Create_Object;

Can this be done?

I've perused the rationale and the RM and haven't run across anything.

Steve
(The Duck)





             reply	other threads:[~2003-02-17 20:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-17 20:25 Steve [this message]
2003-02-18  8:29 ` How do I create an object instance from a tag? Dmitry A. Kazakov
2003-02-18 18:14   ` Randy Brukardt
2003-02-19  2:27     ` Steve
2003-02-19  9:18       ` Dmitry A. Kazakov
2003-02-20 15:38 ` Julio Cano
  -- strict thread matches above, loose matches on Subject: below --
2003-02-19  9:39 Grein, Christoph
2003-02-19 13:26 ` Dmitry A. Kazakov
2003-02-19 18:36   ` Randy Brukardt
2003-02-20  9:15     ` Dmitry A. Kazakov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox