From: Florian Gross Date: 2004-04-08T03:59:18+09:00 Subject: Re: New variable types and assorted lunacy T.Oakley wrote: >> it seem to me you just want a circular array or range, with a cursor. >> Am I wrong? > Not an array, no, just an Integer. So that if I type, say > aNumber = Wrapped.new(1..3) > the variable aNumber would only get values that === 1..3 > So, for example if aNumber was 1 and I added 3 to it, it would == 1, and > if I added 4, it would == 2 and so on. It just wraps around. _Why_ do I > want this? Why not? :) I'm just trying to see what I can and can't do. You can overload + to return bound values. Or you can replace aNumber with self.aNumber= and do a def self.aNumber=(to); ...; end. Hope this helps. Regards, Florian Gross