> I want to overwrite if, > but it doesn't seem to work. > > module Kernel > def if(arg) > yield > end > end > > def if(arg) > yield > end > > doesn't seem to work. > I know I could define my own if, > but it seems like ruby, being so dynamic, should be capable of this. Of course this is something we really need in Ruby ;-) This reminds me on the following, valid (and at its time popular), PL/1 code: IF IF=THEN THEN THEN=ELSE ELSE ELSE=IF; Ronald -- Ronald Fischer <ronald.fischer / venyon.com> Phone: +49-89-452133-162