From c9c1e5a4dc7f04300d6427cf1c9390b9ada82baa Mon Sep 17 00:00:00 2001 From: altrisi Date: Fri, 20 Jan 2023 19:00:47 +0100 Subject: [PATCH] Fix `undef` docs mentioning you can undef constant literals Fuxes #1566 --- docs/scarpet/language/SystemFunctions.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/scarpet/language/SystemFunctions.md b/docs/scarpet/language/SystemFunctions.md index 42caf30b..924dbce2 100644 --- a/docs/scarpet/language/SystemFunctions.md +++ b/docs/scarpet/language/SystemFunctions.md @@ -388,8 +388,6 @@ It can affect global variable pool, and local variable set for a particular func inc(i) -> i+1; foo = 5; inc(foo) => 6 inc(i) -> i+1; foo = 5; undef('foo'); inc(foo) => 1 inc(i) -> i+1; foo = 5; undef('inc'); undef('foo'); inc(foo) => Error: Function inc is not defined yet at pos 53 -undef('pi') => bad idea - removes hidden variable holding the pi value -undef('true') => even worse idea, unbinds global true value, all references to true would now refer to the default 0 ### `vars(prefix)`