From: Martin DeMello Date: 2005-01-18T14:16:05+09:00 Subject: Re: Fwd: [suby-ruby] Your all time desired fundemental Ruby mod gabriele renzi wrote: > Martin DeMello ha scritto: > > I can think of at least one good us for the current @@ variables - > > subclassable GUI components that inherit hierarchy-shared look-and-feel > > properties from the parent class. What would be the elegant way to do > > this if @@ variables go per-class? > > constants? Constants aren't modifiable at run time (well, you aren't supposed to modify them). I was thinking of a scheme whereby you could simply modify the current theme and have all subclassed widgets pick up on that. A shared access method to an entirely separate Theme object might do it, but I still think @@variables are the elegant solution in this case. martin