From: "Hal E. Fulton" Date: 2003-07-18T00:38:18+09:00 Subject: Re: Keyword "with" ----- Original Message ----- From: "Anders Borch" Newsgroups: comp.lang.ruby To: "ruby-talk ML" Sent: Thursday, July 17, 2003 6:15 AM Subject: Re: Keyword "with" > > def loadpp(l) > s = '' > f = File.new(l,'r') > f.each_line do |line| > s += line.gsub(/(\w)\+\+)/,'\1=\1.succ') + "\n" > end > eval(s) > end I haven't played with this at all... but let me remind you that the ++ operator comes in both pre and post forms. Until these code fragments both work, I'd say you haven't actually implemented it, even as a preprocessor kind of thing: x = 5 y = x++ puts y # 5 y = ++x puts y # 6 Cheers, Hal -- Hal Fulton hal9000@hypermetrics.com