From: Kent Dahl Date: 2003-12-07T04:57:03+09:00 Subject: Re: unary +@ can't be defined for Symbol? T. Onoma wrote: > class Symbol > def -@ > [ self ] > end > def +@ > [ self ] > end > end > p -:a # => [ :a ] > p +:a # => :a > > What's the problem here? Problem parsing plus and colon probably. I noticed that: p(+(:a)) #=> [:a] which does decidedly look bad. No problem when the symbol is stored in another value, as: x = :a p +x #=> [:a] -- (\[ Kent Dahl ]/)_ _~_ _____[ http://www.pvv.org/~kentda/ ]_____/~ ))\_student_/(( \__d L b__/ Master of Science in Technology ) ( \__\_�|�_/__/ ) _)Industrial economics and technological management( \____/_�_\____/ (____engineering.discipline_=_Computer::Technology___)