IDLの例 (2)
struct date{ short day; short month; short year;};enum seatSection{ normal, balcony, vip};exception seatNotAvailable{ sequence <seatSection> availableSeats;};typedef short reservationCode;
interface reservationAgent{ void reserve(in date d, in seatSection sec, out long price, out rCode code) raises( seatNotAvailable ); };