Marcin Raczkowski
1/15/2008 3:50:00 PM
Well i tried to play a little with new unicode features.
i wanted to do something like this:
def Σ(*args)
args.inject(0){|sum,el| sum+el}
end
and use it like Σ[1,2,3,4]
BUT:
swistak@sreberko:~$ irb1.9
irb(main):001:0> # -*- encoding: utf-8 -*-
irb(main):002:0* Σ(1,2,3)
=> nil
swistak@sreberko:~$
--------------------------
swistak@sreberko:~$ irb1.9
irb(main):001:0> def Σ(*args)
SyntaxError: compile error
(irb):1: syntax error, unexpected $end
from (irb):1:in `Kernel#binding'
swistak@sreberko:~$
-------------------------
as you can see it's droping back to shell after i type unicode character in.
I'm using Debian etch. Gnome + gnome terminal.
Any ideas?