Newsgroups: comp.std.c++ Path: utzoo!censor!geac!alias!news From: Reid Ellis Subject: Re: type/member tags (was Re: asking an object for its type) Message-ID: <1991Mar1.150813.10737@alias.uucp> Sender: Reid Ellis Reply-To: Reid Ellis Organization: Alias Research, Inc. Toronto ON Canada References: <1991Feb19.214327.13930@gpu.utcs.utoronto.ca> <27C2D973.3C1B@tct.uucp> <27C95D3A.1715@tct.uucp> Date: Fri, 1 Mar 91 15:08:13 GMT Desmond Dsouza writes: >Consider the proposed (now accepted) Exception Handling scheme for >C++. The statement: > catch (ErrorClass& o) { > .... > } >is supposed to 'catch' a deeply nested call to: > throw ErrorClass("someError"); > >Any implementation of this involves a run-time type check, including >class derivation, on the object being thrown. Can you say 'Meta-class'? This is simply overloading based on argument type. Just like having methods named "foo(Tbase &)" and "foo(Tderived &)". No "Meta-class" required. Reid -- Reid Ellis 176 Brookbanks Drive, Toronto ON, M3A 2T5 Canada rae@utcs.toronto.edu || rae%alias@csri.toronto.edu CDA0610@applelink.apple.com || +1 416 446 1644