comp.lang.ada
 help / color / mirror / Atom feed
From: Brian May <bam@snoopy.apana.org.au>
Subject: Re: APQ
Date: Wed, 05 Jan 2005 08:32:53 +1100
Date: 2005-01-05T08:32:53+11:00	[thread overview]
Message-ID: <sa41xd0c22i.fsf@snoopy.apana.org.au> (raw)
In-Reply-To: zj01txsolhws$.1l49jvgadzcgz$.dlg@40tude.net

>>>>> "Dmitry" == Dmitry A Kazakov <mailbox@dmitry-kazakov.de> writes:

    Dmitry> You probably mean this:

    Dmitry> function Copy (C : Root_Connection_Type'Class)
    Dmitry> return Root_Connection_Ptr is
    Dmitry> begin
    Dmitry> return new Root_Connection_Type'Class'(C);
    Dmitry> end Copy;

    Dmitry> This indeed cannot work for limited types. This was the
    Dmitry> reason why Copy was declared abstract primitive instead:

    Dmitry> function Copy (C : Root_Connection_Type)
    Dmitry> return Root_Connection_Ptr is abstract;

    Dmitry> It will dispatch to an implementation which knows how to
    Dmitry> copy itself:

I am under the impression (perhaps wrong impression, I haven't tested
it) that

A := Copy(C);

will not work if C is a limited type, as there is an implied copy
operation from the RHS to the LHS.

Also the thread "Return_By_Reference or Return_By_Copy (GNAT bug?)" might
be relevant here.
-- 
Brian May <bam@snoopy.apana.org.au>



  reply	other threads:[~2005-01-04 21:32 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-15 23:31 APQ Brian May
2004-12-16 11:34 ` APQ Warren W. Gay VE3WWG
2004-12-16 23:58   ` APQ Randy Brukardt
2004-12-17  3:45     ` APQ Brian May
2004-12-17  4:03       ` APQ Warren W. Gay VE3WWG
2004-12-17  4:38         ` APQ Brian May
2004-12-17  9:06           ` APQ Egil H. H�vik
2004-12-17 11:42             ` APQ Brian May
2004-12-17 22:55               ` APQ Brian May
2004-12-18 15:52                 ` APQ Warren W. Gay VE3WWG
2004-12-18 18:23                   ` APQ Dmitry A. Kazakov
2004-12-21 23:34                     ` APQ Brian May
2004-12-22  8:57                       ` APQ Dmitry A. Kazakov
2004-12-22 10:07                   ` APQ Martin Krischik
2004-12-22 13:15                     ` APQ Dmitry A. Kazakov
2004-12-22 16:53                       ` APQ Martin Krischik
2004-12-22 17:21                         ` APQ Dmitry A. Kazakov
2004-12-22 18:23                           ` APQ Martin Krischik
2004-12-17  8:59       ` APQ Stephen Leake
2004-12-17 14:12       ` APQ Dmitry A. Kazakov
2004-12-17 23:20         ` APQ Brian May
2004-12-18 16:13           ` APQ Dmitry A. Kazakov
2004-12-21 23:29         ` APQ Brian May
2004-12-22  9:14           ` APQ Dmitry A. Kazakov
2005-01-04 21:32             ` Brian May [this message]
2005-01-05 11:58               ` APQ Dmitry A. Kazakov
2004-12-23 17:04           ` APQ (Connection Cloning) Warren W. Gay VE3WWG
2004-12-23 17:55             ` Georg Bauhaus
2004-12-23 18:52               ` Warren W. Gay VE3WWG
2005-01-03  7:40                 ` Frank Piron
2004-12-17 13:54 ` APQ Dmitry A. Kazakov
  -- strict thread matches above, loose matches on Subject: below --
2004-12-16  4:37 APQ Christoph Karl Walter Grein
replies disabled

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