From: Robert Klemme Date: 2004-07-10T00:02:38+09:00 Subject: Re: weird behaviour "ts" schrieb im Newsbeitrag news:200407091428.i69ESQl07744@moulon.inra.fr... > >>>>> "l" == lopex writes: > > l> Is it because there is no +@ operator defined for the String class ? > > no, this is this case > > svg% ruby -e '"".to_s +""' > -e:1: undefined method `+@' for "":String (NoMethodError) > svg% > > l> If so, why the latter is parsed silently ? > > because with '"" + "".to_s +""' ruby has seen an identifier and it don't > expect +"" at this step Maybe Ruby tries to parse +"" as unary plus (i.e. number sign) and then fails on the "" part. robert