From: Martin Duerst Date: 2007-10-13T13:13:44+09:00 Subject: Re: Defining unicode methods At 11:59 07/10/13, Daniel Berger wrote: >But the following code does not work with -KU: > >class Numeric > # Identical To (U+2261) > def �(num) > self == num > end >end > >p 7 � 7 > >The last example results in: > >syntax error, unexpected tIDENTIFIER, expecting kEND > >Why do the first examples work, while the last one does not? did you try 7.� 7 ? Even something like: class Numeric def u2261 (num) self == num end end p 7 u2261 7 won't work, you have to write: p 7.u2261 7 � is an identifier, but it's not an operator. Regards, Martin. #-#-# Martin J. Du"rst, Assoc. Professor, Aoyama Gakuin University #-#-# http://www.sw.it.aoyama.ac.jp mailto:duerst@it.aoyama.ac.jp