> > [codesamples]
A standard compiler is expected to compile the above code, and call
std::unexpected_exception if an unexpected exception escapes a
function. Some idioms rely on this. Exception specifications are an
entirely runtime feature. They aren't checked at compile time.
that really sucks :/ i found that out myself recently
why arent exception specifications "compile time type safety for excpt
handling" as it is in (glorious beloved sweet) java? i dont see any reasons
for not beeing able to implement that in future C++ -compilers :(
the only advantage for handling that at runtime would be not to restrict
method invocations by ex-specs, since it is assumed not to throw an
exception anyways (under normal circumstances), so that the application
code isnt forcely filled with exception handling code.
but lotsa "modern" code or should i say, code that i love, uses non
severe exception handling for common controlpaths, and that kinda
codingstyle is perfectly guided by javastyle exceptionspecs and related
features.
phil
PS-OT: anybody out there, who'sp*ssed by oldskool C++ freedom /
doing-by-foot-suffers and wishes to implement some sort of managed C++.Org
language that comes with all the beloved features from java(1.5) while still
retaining C++ stack-located-complex-basictype power (?)
and moreover compiles into java bytecode that is perfectly executed by
every common JRE and compatible to all other java bytecode?????
if so, pm me!!
--------------------------
Philipp Holzschneider
Rotobee Realtime 3D GmbH
--------------------------