class Symbol
def -@
[ self ]
end
def +@
[ self ]
end
end
p -:a # => [ :a ]
p +:a # => :a
What’s the problem here?
T.
class Symbol
def -@
[ self ]
end
def +@
[ self ]
end
end
p -:a # => [ :a ]
p +:a # => :a
What’s the problem here?
T.
T. Onoma wrote:
class Symbol
def -@
[ self ]
end
def +@
[ self ]
end
end
p -:a # => [ :a ]
p +:a # => :aWhat’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 ]/)_ ~ [ Kent Dahl - Kent Dahl ]/~
))_student_/(( _d L b_/ Master of Science in Technology )
( __õ|õ// ) )Industrial economics and technological management(
_/ö____/ (_engineering.discipline=Computer::Technology)
Thanks, Kent.
I hope it can be fixed. Kind of puts a big damper on what I’m working on.
T.
On Saturday 06 December 2003 08:57 pm, Kent Dahl wrote:
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]