testing for a symbol

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

testing for a symbol

Julian Daly-2

Hello,

How can I test for something being entered is a symbol or not? I want it to be.

 

Thanks,

 

Julian



Reply | Threaded
Open this post in threaded view
|

Re: testing for a symbol

Lukas Renggli
> How can I test for something being entered is a symbol or not? I want it to
> be.

Symbol hasInterned: aString ifTrue: [ :symbol | Transcript show: symbol ]

--
Lukas Renggli
http://www.lukas-renggli.ch