[squeak-dev] fromString: default method

Ralph Boland rpboland at gmail.com
Tue Dec 29 00:41:16 UTC 2009


Squeak has half a dozen methods with the name  fromString:
with the exact same code and I am about to add another
for my project.  The code is:

fromString: aString

	^ self readFrom: (ReadStream on: aString)


Should not this method be in  Object  and all classes with the
exact same code remove the code and inherit this method
instead?

Regards,

Ralph Boland



-- 
Volume * Density = Mass.
Volume / Density = Intelligence.
The latter equation explains the
essentially equal intelligence of men and woman
and the capabilities of some commonly used operating systems.



More information about the Squeak-dev mailing list