[#3006] mismatched quotation — "stevan apter" <apter@...>

ruby documentation uses a punctuation convention i've never seen

13 messages 2000/05/27

[ruby-talk:02825] Re: rbc.rb under 1.5

From: matz@... (Yukihiro Matsumoto)
Date: 2000-05-16 05:08:05 UTC
List: ruby-talk #2825
Hi,

In message "[ruby-talk:02823] rbc.rb under 1.5"
    on 00/05/16, Dave Thomas <Dave@thomases.com> writes:

|rbc doesn't catch the new Script error exception at line 130. This
|means that it exits if you make a typing mistake.
|
|Is rbc meant to replace irb?

Basically yes.  But this patch may help.

--- rbc.rb	2000/05/12 09:07:57	1.3
+++ rbc.rb	2000/05/16 05:06:18
@@ -129,3 +129,3 @@
 	    end
-	  rescue
+	  rescue StandardError, ScriptError
 	    #	$! = 'exception raised' unless $!
@@ -931,3 +931,3 @@
 	    load rc
-	  rescue
+	  rescue LoadError
 	    print "load error: #{rc}\n"
@@ -948,3 +948,3 @@
 	  require m
-	rescue
+	rescue LoadError
 	  print $@[0], ":", $!.type, ": ", $!, "\n"
@@ -1006,3 +1006,3 @@
       end
-    rescue
+    rescue LoadError
       CONFIG[:USE_READLINE] = FALSE

In This Thread

Prev Next