diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-08-14 03:56:28 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-08-14 03:56:28 +0000 |
commit | 39ac1d7c22072f2d520738098692bdbce2f380df (patch) | |
tree | 97866a3781af260ce47912f61a6190b9d72270f4 /lib | |
parent | c086e784e200dc555e3f6d0ddb2edfdffd4f166d (diff) |
*** empty log message ***
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/debug.rb | 5 | ||||
-rw-r--r-- | lib/e2mmap.rb | 14 | ||||
-rw-r--r-- | lib/matrix.rb | 8 |
3 files changed, 13 insertions, 14 deletions
diff --git a/lib/debug.rb b/lib/debug.rb index 2e3a29aa9e..90270a3fe7 100644 --- a/lib/debug.rb +++ b/lib/debug.rb @@ -176,7 +176,7 @@ class DEBUGGER__ printf "no sourcefile available for %s\n", file end when /^p\s+/ - p debug_eval($', binding) + p debug_eval($', binding) #' else v = debug_eval(input, binding) p v unless v == nil @@ -194,10 +194,13 @@ class DEBUGGER__ return "\n" unless line return line end + save = $DEBUG begin + $DEBUG = FALSE f = open(file) lines = @scripts[file] = f.readlines rescue + $DEBUG = save @scripts[file] = TRUE return "\n" end diff --git a/lib/e2mmap.rb b/lib/e2mmap.rb index 307b07dfbe..fa10d485d8 100644 --- a/lib/e2mmap.rb +++ b/lib/e2mmap.rb @@ -22,13 +22,13 @@ else cl.bind(self) end - # 以前との互換性のために残してある. + # backward compatibility def E2MM.extend_to(b) c = eval("self", b) c.extend(self) end -# public :fail + # public :fail # alias e2mm_fail fail def fail(err = nil, *rest) @@ -39,8 +39,8 @@ else self.module_eval %q^ E2MM_ErrorMSG = {} unless self.const_defined?(:E2MM_ErrorMSG) # fail(err, *rest) - # err: 例外 - # rest: メッセージに渡すパラメータ + # err: Exception + # rest: Parameter accompanied with the exception # def self.fail(err = nil, *rest) if form = E2MM_ErrorMSG[err] @@ -63,7 +63,6 @@ else # def_exception(c, m) # c: exception # m: message_form - # 例外cのメッセージをmとする. # def self.def_e2message(c, m) E2MM_ErrorMSG[c] = m @@ -72,8 +71,8 @@ else # def_exception(c, m) # n: exception_name # m: message_form - # s: 例外スーパークラス(デフォルト: Exception) - # 例外名``c''をもつ例外を定義し, そのメッセージをmとする. + # s: superclass_of_exception (default: Exception) + # defines excaption named ``c'', whose message is ``m''. # #def def_exception(n, m) def self.def_exception(n, m, s = nil) @@ -99,4 +98,3 @@ else def_exception(:ErrNotRegisteredException, "not registerd exception(%s)") end end - diff --git a/lib/matrix.rb b/lib/matrix.rb index 99f44857a3..fcb0b29eb5 100644 --- a/lib/matrix.rb +++ b/lib/matrix.rb @@ -17,17 +17,15 @@ # : # rown] # -# column: 列 -# row: 行 # # module ExceptionForMatrix:: # Exceptions: # ErrDimensionMismatch -# 行または列数が一致していない. +# number of column/row do not match # ErrNotRegular -# 正則行列でない. +# not a regular matrix # ErrOperationNotDefined -# その演算子はまだ定義されていない. +# specified operator is not defined (yet) # # class Matrix # include ExceptionForMatrix |