<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>


WHERE Search:

In Block I/O Words in TurboForth Kernal

Word Name: WHERE
Type: Standard word
Data Stack Signature: -- block
Return Stack Signature: --
Availability: V1.0  V1.1  V1.2
Description:

Returns the block number of a user-loaded word in the dictionary. Non-existant words return 0.

Example:

WHERE CPYBLK LIST

Comment:

Useful in conjunction with EDIT and LIST. Note that a word must be loaded (in the dictionary) from a block before its block location can be located with WHERE.

Note: In versions 1.0 and 1.1 WHERE was an immediate word. In version 1.2 it is not an immediate word.

Note: System-provided words (words in the TurboForth ROM) return a value of 1. It is not useful to use WHERE in conjunction with a system-provided word.

See Also: EDIT  LIST 

<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>