![]() |
![]() |
![]() |
![]() |
![]() |
|
Other versions of Smalltalk include methods that do all the work for you.
In VisualWorks, for example, you send readFrom: to the
Number class with a stream argument. Then, readFrom: reads
all the characters constituting the number from the stream, answering a
number of the appropriate class.