From: ara.t.howard@... Date: 2007-01-05T07:46:54+09:00 Subject: Re: Pervasive Methods [was: Little Things] On Fri, 5 Jan 2007, Tim Pease wrote: > > Hmmm ... maybe I need some enlightening, but this is what I came up with ... > >> cat a.rb > def if(*a) p a end > > if true then puts 'keyword 1' end > > if(true) > puts 'keyword 2' > end > >> ruby a.rb > keyword 1 > keyword 2 > > > That's the beauty of keywords -- the parser is going to intercept them > and invoke the appropriate function via the lexer. Unless I did not > properly define my "if" method there. > my mistake. still, it'd be cool to see if we could hack into the current ruby... though i've no idea if that's possible attm. -a -- in the practice of tolerance, one's enemy is the best teacher. - the dalai lama