From: Guillaume Marcais Date: 2006-07-01T10:01:56+09:00 Subject: Re: << for Hash? Le 29 juin 06, � 19:04, ara.t.howard@noaa.gov a �crit : > On Fri, 30 Jun 2006, Joel VanderWerf wrote: > >> ara.t.howard@noaa.gov wrote: >> ... >>> incidentally, '<<' is not a pure append operator in ruby >>> >>> class << self >>> end >>> >>> 42 << 2 >>> >>> string = <>> foobar >>> hdoc >> >> But those aren't other uses of the << operator. Those are "just" >> syntax. > > hmmm. you are right in two of three. but Fixnum#<< is definitely a > method. > in any case ruby has precedent for '<<' meaning other things besides > only > 'append'. Can't we see shifting an Integer the same as appending zeroes on one end of it? Just to play the devil's advocate... Guillaume. > > cheers. > > -a > -- > suffering increases your inner strength. also, the wishing for > suffering > makes the suffering disappear. > - h.h. the 14th dali lama > >