[Ruby2c] [ ruby2c-Bugs-1429 ] String Arrays generate broken C code
noreply at rubyforge.org
noreply at rubyforge.org
Wed Feb 2 11:11:06 PST 2005
Bugs item #1429, was opened at 2005-02-02 14:11
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=1766&aid=1429&group_id=443
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: String Arrays generate broken C code
Initial Comment:
class Test
def t
a = ["1","a","b"]
a.each do |b|
echo b
end
end
end
Problem in C code:
$ gcc -I /usr/lib/ruby/1.8/powerpc-darwin my/test.c -o my/test
my/test.c: In function `t':
my/test.c:12: error: syntax error before "a"
12: char *_array a;
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=1766&aid=1429&group_id=443
More information about the ruby2c
mailing list