From: bobduff@world.std.com (Robert A Duff)
Subject: Re: question on exceptions
Date: 1996/11/08
Date: 1996-11-08T00:00:00+00:00 [thread overview]
Message-ID: <E0J5x6.7HA@world.std.com> (raw)
In-Reply-To: E0I7zK.E4x.0.-s@inmet.camb.inmet.com
In article <E0I7zK.E4x.0.-s@inmet.camb.inmet.com>,
Tucker Taft <stt@houdini.camb.inmet.com> wrote:
>In an exception handler, membership tests could be used to determine
>what sort of additional information was passed along.
Yeah, I also envisioned such implementation-defined stuff.
But I want to declare the type of the attached information at the point
of the exception declaration, so that *handlers* can know for sure (at
compile time) that every *raise* of, say, The_Sky_Is_Falling will attach
(say) the current color of the sky.
The membership test isn't so awful, with appropriate comments at the
point of the exception declaration, but it *could* be done at compile
time.
- Bob
next prev parent reply other threads:[~1996-11-08 0:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-11-02 0:00 question on exceptions Michiel Perdeck
1996-11-03 0:00 ` Laurent Guerby
1996-11-04 0:00 ` Do-While Jones
1996-11-06 0:00 ` Robert A Duff
1996-11-07 0:00 ` Tucker Taft
1996-11-08 0:00 ` Robert A Duff [this message]
1996-11-08 0:00 ` Robert Dewar
1996-11-09 0:00 ` Tucker Taft
[not found] ` <E0Mr58.D00@world.std.com>
1996-11-09 0:00 ` Robert Dewar
1996-11-03 0:00 ` Robert A Duff
1996-11-04 0:00 ` Michel Gauthier
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox