logo       

Where to 'declare' symbols: msg#00117

lang.smalltalk.squeak.beginners

Subject: Where to 'declare' symbols

I want to eliminate a 'magic number' used by methods in a single class. I'd like to do that by creating a symbol that would be available to all the methods in the class. Where and how should I create such a symbol? I can't seem to find an example anywhere.

Thanks: John


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise