Newcomer Trying to Learn Squeak

Rob Rothwell rjriv at sbcglobal.net
Tue Dec 21 02:21:01 UTC 2004


Hello all,

I am brand new to Squeak and Smalltalk, and I am afraid I am
misunderstanding a very important and probably straightforward concept:

How in the world can

fs := FileDirectory new fileNamed: 'c:\test.txt'.

Get turned into

fs := FileStream fileNamed: 'c:\test.txt'.

when fileNamed: is a method belonging to FileDirectory and not to
FileStream?

Whatever makes this syntactically correct seems like a very useful concept
that I can not seem to duplicate.

Thank you,

Rob Rothwell




More information about the Squeak-dev mailing list