[#1] Welcome to the ruby-core mailing list — matz@... (Yukihiro Matsumoto)
Hi,
[#7] Useless patch... — Michal Rokos <m.rokos@...>
Hi,
[#19] Re: [BUG] thread failure after trap — nobu.nokada@...
Hi,
>>>>> "n" == nobu nokada <nobu.nokada@softhome.net> writes:
Hi,
[#42] Re: possible bug: stack dump with <<-String, #{...} and large loops — ts <decoux@...>
Hi,
>>>>> "n" == nobu nokada <nobu.nokada@softhome.net> writes:
Hi,
>>>>> "n" == nobu nokada <nobu.nokada@softhome.net> writes:
>>>>> "t" == ts <decoux@moulon.inra.fr> writes:
Hi,
>>>>> "n" == nobu nokada <nobu.nokada@softhome.net> writes:
Hi,
>>>>> "n" == nobu nokada <nobu.nokada@softhome.net> writes:
Hi,
>>>>> "n" == nobu nokada <nobu.nokada@softhome.net> writes:
Hi,
>>>>> "n" == nobu nokada <nobu.nokada@softhome.net> writes:
Hi,
>>>>> "n" == nobu nokada <nobu.nokada@softhome.net> writes:
Hi,
>>>>> "n" == nobu nokada <nobu.nokada@softhome.net> writes:
Hi,
>>>>> "n" == nobu nokada <nobu.nokada@softhome.net> writes:
Hi,
>>>>> "n" == nobu nokada <nobu.nokada@softhome.net> writes:
[#59] yyparse() and friends >> rubyparse() or rbparse()... — Sean Chittenden <sean@...>
Would it be possible to add '-p ruby' to the bison command line args
Hi,
> |Would it be possible to add '-p ruby' to the bison command line
[#67] The warns-a-thon continues... — Sean Chittenden <sean@...>
I'm feeling left out in this race to clobber warnings!!! Attached are
Hi,
Hi,
> :*) Fixed some sprintf() format type mismatches
[#86] rb_hash_has_key() and friends non-static... — Sean Chittenden <sean@...>
I'm doing a lot of work with Ruby in C and am using some of Ruby's
At the moment I'm writing an appendix Beginning Ruby Programming
Hi,
[#104] Re: possible bug: stack dump with <<-String, #{...} and large loops — ts <decoux@...>
>>>>> "n" == nobu nokada <nobu.nokada@softhome.net> writes:
Hi,
>>>>> "n" == nobu nokada <nobu.nokada@softhome.net> writes:
Hi,
>>>>> "n" == nobu nokada <nobu.nokada@softhome.net> writes:
Hi,
>>>>> "n" == nobu nokada <nobu.nokada@softhome.net> writes:
Hi,
Hi,
>>>>> "n" == nobu nokada <nobu.nokada@softhome.net> writes:
>>>>> "t" == ts <decoux@moulon.inra.fr> writes:
Hi,
Re: possible bug: stack dump with <<-String, #{...} and large loops
Hi,
At Tue, 28 May 2002 00:56:00 +0900,
ts wrote:
> n> Another approach.
>
> Seems better,
Since it was too ugly, additional patch, and testcases. The
latest versions of 1.6 and 1.7 succeed the tests excepting
test_bug.
--- eval.c~ Mon May 27 23:34:52 2002
+++ eval.c Tue May 28 09:34:42 2002
@@ -3059,8 +3059,6 @@ rb_eval(self, n)
if (ruby_scope->local_tbl) {
NODE *body = (NODE *)ruby_scope->scope_node;
- if (body &&
- (!body->nd_tbl ||
- body->nd_tbl != ruby_scope->local_tbl &&
- (free(body->nd_tbl), 1))) {
+ if (body && body->nd_tbl != ruby_scope->local_tbl) {
+ if (body->nd_tbl) free(body->nd_tbl);
ruby_scope->local_vars[-1] =
(VALUE)(body->nd_tbl = ruby_scope->local_tbl);
--
Nobu Nakada
Attachments (1)
require 'test/unit'
class TC_Evstr < Test::Unit::TestCase
def bug
"#{a=1}"
end
def bug2
"#{a = 12
2.times {b = 1}
'end'
a}"
end
def test_bug
assert_equal("1", assert_nothing_raised {bug})
assert_equal("1", assert_nothing_raised {bug})
assert_equal("12", assert_nothing_raised {bug2})
assert_equal("12", assert_nothing_raised {bug2})
end
def test_error
begin "#{a = b = 1:}"; rescue SyntaxError; end
assert_raises(NameError) {eval "a"}
assert_raises(NameError) {eval "b"}
end
def test_raise
begin "#{a = 1; raise}"; rescue; end
assert_equal("1", "#{a}")
end
def test_nest
"#{"#{a=1}"}"
assert_equal("1", "#{a}")
end
def test_dvar
"#{a = 12}"
eval "x = 12"
assert_equal("local-variable", "#{defined? x}")
end
end