From: Simon Wright <simon@pushface.org>
Subject: Re: Breaking a circularity
Date: Mon, 28 Mar 2011 12:37:12 +0100
Date: 2011-03-28T12:37:12+01:00 [thread overview]
Message-ID: <m2hbanpjbr.fsf@pushface.org> (raw)
In-Reply-To: 5aac3e2d-a382-479e-90a3-8acd846ca204@o21g2000prh.googlegroups.com
Ludovic Brenta <ludovic@ludovic-brenta.org> writes:
> BTW, why does Event_Type have to be limited? If it weren't limited,
> you would not need Event_Ptr_Type. Also, why does it have to be
> abstract?
When I made my events limited, it was because any two events are
different. In this case, we have
type Event_Type is abstract record
Id : Positive;
Time : Time_Type;
end record;
so it probably won't make any sense for an Event to be copyable (what
would Id be in the copy?). Of course the events could be privately
nonlimited.
I do wonder what Id is _for_.
You'll certainly need pointers somewhere, because Event_Type instances
have to be held in the Queue. Indefinite_Ordered_Sets might do the
trick, though. It would save the bother of having Handle deallocate the
Event.
next prev parent reply other threads:[~2011-03-28 11:37 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-28 4:11 Breaking a circularity Gene
2011-03-28 9:59 ` Ludovic Brenta
2011-03-28 11:37 ` Simon Wright [this message]
2011-03-28 22:38 ` Gene
2011-03-29 3:01 ` Randy Brukardt
2011-03-28 19:47 ` Gene
2011-03-28 10:15 ` Simon Wright
2011-03-28 21:31 ` Gene
2011-03-28 11:06 ` Martin
2011-03-28 22:26 ` Gene
2011-03-29 16:28 ` Martin
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox