Adding a newline to an Array

Bert Freudenberg bert at isg.cs.uni-magdeburg.de
Sun Nov 16 20:33:50 UTC 2003


Danie Roux wrote:

> Now how do I put lf in an array?
> 
> #($a $b #lf) " Doesn't seem to work?" 

We have no literal representation of lf, and the #() syntax uses 
literals. Squeak uses cr instead, so you can write this:

#($a $b $
)

which is a $ followed immediately by a carriage return (which gets 
insterted if you press the return key on your keyboard).

Just curious: what do you need this for?

-- 
    Bert




More information about the Squeak-dev mailing list