Heesob Park wrote:
> String operation code
> s = ("hello " + "world ")*100
>

[...]

> Modified parser:
>    0:[NODE_BLOCK],0xb7efdc6c,p1:-11,p2:1,p3:1}
>    -11:[NODE_NEWLINE],0xb7efdd48,u1:0,u2:2,p3:-22}
>      -22:[NODE_LASGN],0xb7efde24,u1:10473,p2:-12,u3:2}
>        -12:[NODE_STR],0xb7efdd5c,p1:-13,u2:0,u3:0}

 What do you do, if someone write this

vgs% /usr/bin/ruby
class String
   def +(x)
      "#{x} #{self}"
   end
end

p "a" + "b"
^D
"b a"
vgs%

 I know, the example is stupid :-)




Guy Decoux