diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-06-28 14:42:46 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-06-28 14:42:46 +0000 |
| commit | 3f88a70f490a3af921bc990461fbf54c7d2435d3 (patch) | |
| tree | 0bd6a2a6dde695b2ac3cf1193419676a78f914b9 /sample/test.rb | |
| parent | 3225d49fed7115b4f88f7047da943747032e7beb (diff) | |
| download | ruby-3f88a70f490a3af921bc990461fbf54c7d2435d3.tar.gz ruby-3f88a70f490a3af921bc990461fbf54c7d2435d3.tar.xz ruby-3f88a70f490a3af921bc990461fbf54c7d2435d3.zip | |
* re.c (rb_reg_expr_str): need to process backslashes properly.
* object.c (rb_any_to_a): declare Object#to_a to be obsolete.
* object.c (rb_Array): do not convert nil into [] automagically.
* object.c (rb_Integer): use "to_int" instead of
"to_i". [experimental]
* object.c (nil_to_f): new method.
* object.c (rb_Integer): Symbols and nil should cause error.
* object.c (rb_Float): nil should cause error.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample/test.rb')
| -rw-r--r-- | sample/test.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sample/test.rb b/sample/test.rb index fb2aee724..9cf62b8eb 100644 --- a/sample/test.rb +++ b/sample/test.rb @@ -1212,8 +1212,7 @@ end def valid_syntax?(code, fname) eval("BEGIN {return true}\n#{code}", nil, fname, 0) rescue Exception - p $! -ensure + puts $!.message false end |
