message String>>fromString:

Kamil Kukura kamk at volny.cz
Tue Jun 11 19:01:27 UTC 2002


I found in String>>fromString:
"Answer an instance of me that is a copy of the argument, aString."

Well, if "me" is not pure String but something derived, the above is not
true.
(DerivedString fromString: 'hello world') className "gives String"

Fortunately ('hello world' as: DerivedString) works.

-- 
Kamil






More information about the Squeak-dev mailing list