Go to the first, previous, next, last section, table of contents.


unreadChar

Function: unreadChar { -> }
file: job.t
package: muf
status: alpha

If the job has just read a value via readChar or readByte, then unreadChar may be used to effectively undo the read. (This is often convenient when scanning input a character at a time, to return an unwanted value belonging to the next token.)

There is no guarantee of being able to unread more than one value deep, and the effect of calling unreadChar in other contexts is undefined. (In general, however, unreadChar will do either the obvious thing, or nothing.)

This function is also available under the names unreadByte and unreadValue, to improve code readability.

See section unreadStreamChar.


Go to the first, previous, next, last section, table of contents.