From: gabriele renzi Date: 2004-04-08T00:39:19+09:00 Subject: Re: New variable types and assorted lunacy il Wed, 07 Apr 2004 12:40:34 +0300, "T.Oakley" ha scritto:: >Hello! > >I'm more or less a newcomer to Ruby ("found" it 4 days ago). >Having mostly dealt with functional/procedural >languages in the past, I'm having a little trouble adjusting to >the OO-paradigm, but nevertheless, Ruby's got me hooked. welcome! >Anyhow, here's the problem: > >Can create a class that extends the existing variable types? sure and you can even override the default behaviour for existing ones. You can't ovverride = sorry. It's not a message so we are stuck with stupid accessors :) it seem to me you just want a circular array or range, with a cursor. Am I wrong? PS it would be cool anyway to be able to override assignment :)