comp.lang.ada
 help / color / mirror / Atom feed
From: "Warren W. Gay VE3WWG" <ve3wwg@NoSpam.cogeco.ca>
Subject: Re: APQ
Date: Sat, 18 Dec 2004 10:52:52 -0500
Date: 2004-12-18T10:52:52-05:00	[thread overview]
Message-ID: <qmYwd.366$jT5.52@read1.cgocable.net> (raw)
In-Reply-To: <sa4acscr0vv.fsf@snoopy.apana.org.au>

Brian May wrote:
>>>>>>"Brian" == Brian May <bam@snoopy.apana.org.au> writes:
> 
> 
>     Brian> Good point. I meant to change it in both places, but I think I ended
>     Brian> up changing it in only one place...
> 
> You were right, I missed it up.
> 
> Here is a patch that turns all methods into abstract methods.

Ok, Brian, hang on to your patches. I am trying to get my
Source Forge account reactivated (something's happened to it),
and then get this project up there.

I am surprised that that was all there was to it. I must have
made the same mistake.

> Unfortunately, I could not make Finalize abstract, the compiler
> complained that abstract methods must be visible (Finalize is in the
> private section). This restriction seems strange to me, but I am not
> going to argue with the compiler and left the function generating an
> exception at run-time.
> 
> I suspect Finalize doesn't need to be abstract, but didn't go
> exploring enough to verify why it is abstract.

Normally, you would want to override Finalize, because you
will have allocated references within the derived object
to clean up etc. However, 90% is better than nothing ;-)

> Also, I noticed that the pointers are "access all". I couldn't see any
> requirement for "all", and my code still compiles, so I changed them
> to "access". This eliminates a potential source of errors.

I can't imagine it making a practical difference here, but
perhaps I lack imagination on this point.

Warren.



  reply	other threads:[~2004-12-18 15:52 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                 ` Warren W. Gay VE3WWG [this message]
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             ` APQ Brian May
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