From: matz@... (Yukihiro Matsumoto) Date: 2002-04-23T15:56:48+09:00 Subject: Re: Ruby as Smalltalk Hi, In message "Re: Ruby as Smalltalk" on 02/04/23, Paul Brannan writes: |but the syntax for using it is ugly: | | exception_intercept( | proc { | raise MyException | }, | proc { |exc| | case exc | when MyException | puts "Got the exception!" | kill_exception # don't let this exception propogate further | else | puts "UH OH!" | end | } | ) By RCR#90, it would be: exception_intercept({|| raise MyException}, {|exc| case exc when MyException puts "Got the exception!" kill_exception # don't let this exception propogate further else puts "UH OH!" end } ) But I'm still not sure it's good enough. matz.