From: Logan Capaldo Date: 2006-03-09T10:57:02+09:00 Subject: Re: globals outside of OO scripting On Mar 8, 2006, at 8:48 PM, rtilley wrote: > Thanks for the examples and info guys! > > I'm still trying to get my head around the whole OO concept... as > you can probably tell :) I don't know if this is proper or not, but > I ended up making a constant in the class. Inside, the methods > could access it by name. And outside, I could access it like this > Class_Name::Constant > > Is that good or bad? > > > Depends. Why are you accessing it outside the class? If its to change its value, than thats probably not a good idea and that functionality should be put into a method. Of course if its really a constant, well then its ok.