links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
aString asText
Last updated at 11:52 am UTC on 19 July 2022
Instances of class String have no attributes associated with them.

With #asText you get a Text instance to which TextAttributes may be added.

 aText := aString asText

Then with

 aText asMorph

you may get a TextMorph.


 aString asText asMorph

gives a TextMorph instance.

Whereas a
 aString asMorph 

gives a StringMorph instance.

Thus both class String and class Text implement #asMorph but with different resulting morphs.
Cf: Selectors of String and Text