From: David Botton <david@botton.com>
Subject: Re: Using Class wide types as factories, is this legit?
Date: Tue, 23 Sep 2014 01:21:58 -0700 (PDT)
Date: 2014-09-23T01:21:58-07:00 [thread overview]
Message-ID: <4a7d6542-d4c1-4d79-8def-d4b74e06dacd@googlegroups.com> (raw)
In-Reply-To: <14aahny7n1xxq.12aqg1nr0sro0$.dlg@40tude.net>
> It is hard to say without seeing Initialize, Finalize and Adjust. I would
>
> guess that Adjust is wrong, e.g. not making a deep copy of the things
>
> killed in Finalize, which may lead to deallocating these twice in the first
>
> variant of your code.
There is no adjust or finalize. Initialize looks like this:
procedure Initialize (Object : in out Active_Record) is
use Gnoga.Server.Database;
begin
if Object.Connection = null then
raise Connection_Error;
end if;
Object.Fields :=
Object.Connection.List_Fields_Of_Table
(Object.Table_Name.all);
end Initialize;
next prev parent reply other threads:[~2014-09-23 8:21 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-23 5:19 Using Class wide types as factories, is this legit? David Botton
2014-09-23 7:23 ` Dmitry A. Kazakov
2014-09-23 8:21 ` David Botton [this message]
2014-09-23 19:28 ` Dmitry A. Kazakov
2014-09-23 21:27 ` David Botton
2014-09-24 7:22 ` Dmitry A. Kazakov
2014-09-23 8:37 ` briot.emmanuel
2014-09-23 8:52 ` David Botton
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox