From: Ross Bamford Date: 2006-06-02T19:49:45+09:00 Subject: Re: Adding an Increment Operator? On Fri, 2006-06-02 at 09:34 +0900, Dave Burt wrote: > Dave Howell wrote: > > So, how WOULD I create an .increment operator? I get why I can't put it > > in class Fixnum (well, I think I know why); Fixnums are symbol-ish-ly > > unalterable. 5.increment should fail, for sanity's sake. > > > I wasn't going to mention the kind of generic delegating container Ross > just wrote about; have a look, but I don't think you'll find a place to > use that where there isn't a better solution. I have to admit to being at most semi-serious with that suggestion :). -- Ross Bamford - rosco@roscopeco.REMOVE.co.uk