mirror of
https://github.com/nineties/planckforth
synced 2025-01-14 08:01:27 +01:00
Add comment about alias
This commit is contained in:
parent
66acc8a2fa
commit
5474098e9a
1 changed files with 7 additions and 0 deletions
7
core.fs
7
core.fs
|
@ -404,6 +404,13 @@ set-immediate \
|
||||||
W F G @ , \ fill code-pointer of "name-old"
|
W F G @ , \ fill code-pointer of "name-old"
|
||||||
;
|
;
|
||||||
|
|
||||||
|
\ Add new names to builtin primities.
|
||||||
|
\ Instead of defining as a new FORTH word like shown below,
|
||||||
|
\ the aliases ared created by copying their code-pointer.
|
||||||
|
\ : new-name old-name ;
|
||||||
|
\ Primitive operators which manipulate program counter and return stack
|
||||||
|
\ can not be defined as a FORTH word.
|
||||||
|
|
||||||
alias-builtin bye Q
|
alias-builtin bye Q
|
||||||
alias-builtin cell C
|
alias-builtin cell C
|
||||||
alias-builtin here h
|
alias-builtin here h
|
||||||
|
|
Loading…
Reference in a new issue