Word aliasing
Factor handbook » The language » Words

Prev:Symbols
Next:Constants


There is a syntax for defining new names for existing words. This useful for C library bindings, for example in the Win32 API, where words need to be renamed for symmetry.

Define a new word that aliases another word:
ALIAS:


Define an alias at run-time:
define-alias ( new old -- )