From: mike@... (Mike Stok) Date: 2003-03-27T12:10:57+09:00 Subject: Re: syntax In article <20030326231043.GA1684@math.umd.edu>, Daniel Carrera wrote: >On Thu, Mar 27, 2003 at 07:09:59AM +0900, Robert wrote: >> class Fixnum >> def inc(val=1) >> self += val >> end >> end >> >> 1.inc >> >> :-) > >That doesn't work, but '1.succ' does. But surely the original poster was really trying to get something like i = 1 i.succ! # hypothetical :-) which is a tad different... Mike -- mike@stok.co.uk | The "`Stok' disclaimers" apply. http://www.stok.co.uk/~mike/ | GPG PGP Key 1024D/059913DA mike@exegenix.com | Fingerprint 0570 71CD 6790 7C28 3D60 http://www.exegenix.com/ | 75D2 9EC4 C1C0 0599 13DA