[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Methods, Inheritance, Exceptions, etc. (was: Re: Methods in S MIng ?)




>>>>> Putzolu, David writes:

David> I think exceptions, C++, Java, and CORBA, are in practice
David> associated with a different flow of control: "When designing
David> your [IDL] interfaces, keep in mind that it is harder for a
David> programmer to deal with exceptions than ordinary return values
David> because exceptions break the normal flow of control" (Advanced
David> CORBA Programming with C++, Michi Henning & Steve Vinoski).

CORBA IDL and SMIng are pure data definition languages and they have
no concept of "flow of control". Exceptions in C++ and Java for sure
lead to a different flow of control. Exceptions in a CORBA IDL or an
SMIng definition do not force that. For example, the CORBA IDL to C
mapping just returns exceptions as a function return parameter since C
has no concept of exceptions. Exception in data definition languages
just formalize the notion of IN parameters, OUT parameters and "method
execution error conditions".

/js

-- 
Juergen Schoenwaelder      Technical University Braunschweig
<schoenw@ibr.cs.tu-bs.de>  Dept. Operating Systems & Computer Networks
Phone: +49 531 391 3289    Bueltenweg 74/75, 38106 Braunschweig, Germany
Fax:   +49 531 391 5936    <URL:http://www.ibr.cs.tu-bs.de/~schoenw/>