From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: A suggestion for resource management
Date: Mon, 23 Aug 2010 18:37:00 -0500
Date: 2010-08-23T18:37:00-05:00 [thread overview]
Message-ID: <i4v0mv$v0n$1@munin.nbi.dk> (raw)
In-Reply-To: 4c710ab7$0$6882$9b4e6d93@newsspool2.arcor-online.net
"Georg Bauhaus" <rm-host.bauhaus@maps.futureapps.de> wrote in message
news:4c710ab7$0$6882$9b4e6d93@newsspool2.arcor-online.net...
...
> Scope(whatever) ...; looks like a solution typical of {} languages:
> compare its "flexibility" with the "flexibility" of goto in C and Ada,
> respectively. I find it too compiler-writer-oriented, and somewhat
> ad hoc in use. How can it be bridled?
I agree, but I don't think it is "compiler-writer-oriented", because it
doesn't fit into the things an Ada compiler is already doing. Which means it
would be a massive new mess, unless it was implemented in terms of existing
things. I'd probably implement it with an anonymous controlled object having
the procedure call (conditionally) called from the Finalize routine.
Probably would be a lot more expensive than just doing it right (using
controlled types).
Moreover, using pragmas for dynamic content is really an abuse of the
concept, IMHO. The fact that the concept has been abused in the past doesn't
make it OK to abuse it more.
Randy.
next prev parent reply other threads:[~2010-08-23 23:37 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-21 16:20 A suggestion for resource management Florian Weimer
2010-08-21 19:07 ` Dmitry A. Kazakov
2010-08-21 19:47 ` Florian Weimer
2010-08-21 20:53 ` Dmitry A. Kazakov
2010-08-21 21:09 ` Florian Weimer
2010-08-22 6:40 ` Dmitry A. Kazakov
2010-08-23 23:22 ` Randy Brukardt
2010-08-21 20:34 ` Niklas Holsti
2010-08-21 21:01 ` Florian Weimer
2010-08-22 10:53 ` Niklas Holsti
2010-08-22 15:29 ` Florian Weimer
2010-08-22 16:12 ` Florian Weimer
2010-08-23 12:25 ` Niklas Holsti
2010-09-04 19:09 ` Florian Weimer
2010-09-07 10:14 ` Niklas Holsti
2010-08-22 11:32 ` Georg Bauhaus
2010-08-23 23:37 ` Randy Brukardt [this message]
2010-08-22 13:09 ` stefan-lucks
2010-08-22 14:30 ` Florian Weimer
2010-08-22 15:09 ` Florian Weimer
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox