Home Segments Index Top Previous Next

473: Mainline

You can check to see whether there are any more characters in a stream by sending the stream the atEnd message, which answers true or false.

Because whitespace characters are characters, a stream with only whitespace characters answers true to atEnd.