From: Robert Dober Date: 2007-07-24T21:37:52+09:00 Subject: Re: Static variables in Ruby. On 7/24/07, Bertram Scharpf wrote: > Hi, > > Am Dienstag, 24. Jul 2007, 18:03:15 +0900 schrieb Robert Dober: > > On 7/24/07, Marcin Tyman wrote: > > >Is any way to define static variables over function? As class static > > >variables there is possible to define a static class variable as > > >@@name_of_var. But I'm not sure if Ruby let define such variables in > > >functions (like in C/C++) > > There are three kinds of variables in Ruby > > local > > @@class_var > > @instance_var > > Further > > $global LOL completely forgot them, thx. > > which I use almost never (except $1, $> etc.). exactly Robert -- I always knew that one day Smalltalk would replace Java. I just didn't know it would be called Ruby -- Kent Beck