|
Re: Where to 'declare' symbols: msg#00123lang.smalltalk.squeak.beginners
Hi Matthew, Oh, duh! A method that simply returns a value *is* a simple solution. Thanks. I just tried the class variable approach, too, (just to see how it works). It took me a while to figure out what you meant by initializing the Class but finally realized the only way to access the class variable was to do something like MyClass initialize. MyClass MySpecialConstant. I guess inside a class method, you could access it like: testValue > MySpecialConstant Okay, I think I get it. Thanks! -- John "First, and simplest, implement a message that returns the "Second, use a class pool variable:"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Websites for On-line Collectible Dealers ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Identry, LLC John Almberg (631) 546-5079 jalmberg@xxxxxxxxxxx www.identry.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Mod operator?, Michael van der Gulik |
|---|---|
| Next by Date: | Re: Squeak plugin Firefox/Ubuntu, Juliano Mercantil |
| Previous by Thread: | Re: Where to 'declare' symbols, Matthew Fulmer |
| Next by Thread: | Re: Squeak plugin Firefox/Ubuntu, Juliano Mercantil |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |