1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* eval.c (rb_yield_0): 0 (= Qfalse) is a valid value, so that

default self should be checked by klass == 0.

* bignum.c (rb_cstr2inum): should disallow '++1', '+-1', etc.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2001-03-14 04:45:46 +00:00
parent 2ed799f834
commit 72267e8dbf
4 changed files with 28 additions and 29 deletions

View file

@ -185,7 +185,7 @@ class Queue
end
end
def shift(non_block=false)
pop(non_block=false)
pop(non_block)
end
alias deq shift