From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Garbage Collection ???
Date: Fri, 20 Apr 2012 09:11:18 +0200
Date: 2012-04-20T09:11:18+02:00 [thread overview]
Message-ID: <itjg3eh0o4s8.rm273bcoi1tb$.dlg@40tude.net> (raw)
In-Reply-To: jmpscu$ui7$1@munin.nbi.dk
On Thu, 19 Apr 2012 15:26:03 -0500, Randy Brukardt wrote:
> (And a null-excluding component - by any means - is almost never a good
> idea.
The idea is good, bad is lthe ack of means to initialize such components
properly. You know what I mean. (:-))
> You always need a "nothing/unknown" indicator.
I am using a scheme when non-null pointer components are initialized to a
stock object. It works, but becomes very uncomfortable when the record
itself is in a generic and the target type is tagged. I need to derive not
only the type itself, but also the stock object type, override its
operations to null/alarm, create the stock singleton etc.
> Null-exclusions are
> almost exclusively useful for parameters, where you don't need "nothing"
> simply because you don't make the call in that case.)
and access discriminants, certainly.
However both cases do not feel good. I mean why there should be a pointer?
Is it always a reference semantics? Frequently it is not. But even if the
semantics is indeed referential, why explicit pointer?
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2012-04-20 7:11 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-13 12:14 Garbage Collection ??? ldries46
2012-04-13 13:20 ` Dmitry A. Kazakov
2012-04-13 19:27 ` ldries46
2012-04-13 20:06 ` Dmitry A. Kazakov
2012-04-13 22:49 ` Brian Drummond
2012-04-14 3:21 ` ldries46
2012-04-14 18:21 ` Robert A Duff
2012-04-18 9:07 ` Julian Leyh
2012-04-19 14:36 ` Robert A Duff
2012-04-19 20:26 ` Randy Brukardt
2012-04-20 7:11 ` Dmitry A. Kazakov [this message]
2012-04-21 0:46 ` Randy Brukardt
-- strict thread matches above, loose matches on Subject: below --
1992-04-22 18:55 Garbage collection? dog.ee.lbl.gov!overload.lbl.gov!agate!spool.mu.edu!yale.edu!jvnc.net!darw
1992-04-21 23:48 Robert I. Eachus
1992-04-21 23:02 Rick Hudson
1992-04-21 21:09 titan.ksc.nasa.gov!mcroberts
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox