Richard Roberts wrote: > I'm glad not everyone thinks I'm mad! > > Does anyone know a good way to simulate the C++ and Java behaviour in > ruby? I've tried various things, but to no avail (e.g. declaring them as > class-level instance variables in a private block, creating private > accessors etc). Write a C structure holding your variables (it doesn't even have to be complex: a VALUE array should do). Apart from that, no solution. You won't change easily a design feature of Ruby ;-)... Vince -- Vincent Fourmond, PhD student (not for long anymore) http://vincent.fourmond.neuf.fr/