Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!sun-barr!newstop!suntops!hatter.Tops.Sun.COM!rdas From: rdas@hatter.Tops.Sun.COM (Robin Das) Newsgroups: comp.lang.eiffel Subject: Problems with exception handling Message-ID: <643@suntops.Tops.Sun.COM> Date: 13 Jul 89 22:18:36 GMT Sender: news@suntops.Tops.Sun.COM Reply-To: rdas@hatter.Tops.Sun.COM (Robin Das) Organization: Sun Microsystems, Inc. Mt. View, Ca. Lines: 28 I am currently evaluating the Eiffel environment and have just started to look at the exception handling facilities. I wrote a very simple "hello world" type of program to try it out. It core dumps and does not execute the 'rescue' clause. The dump is 'Illegal instruction'. I thought that executing a feature of an object that was not Created created an Eiffel (internal) exception. It must be a very simple problem. I also could'nt get the demo program that comes with the distribution tape (recover.e) to execute the rescue clause. Here is my 'hello world' program: class HELLO feature Create is local io:STD_FILES; io1:STD_FILES; do -- io.Create; io.output.putstring_nl("Hello world"); rescue io1.Create; io1.output.putstring_nl("Boom!!"); end end -- class HELLO Any idea of what went wrong????