From 5474098e9a716cc782407096bf8474c809ce065b Mon Sep 17 00:00:00 2001 From: Koichi Nakamura Date: Fri, 1 Jan 2021 00:04:21 +0900 Subject: [PATCH] Add comment about alias --- core.fs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core.fs b/core.fs index a6c1dfe..a85a947 100644 --- a/core.fs +++ b/core.fs @@ -404,6 +404,13 @@ set-immediate \ 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 cell C alias-builtin here h