add s:const to stdlib

FossilOrigin-Name: 87ce2066d166476f2739747e97d4daa070b674173433fbf912cc6fba94afcbdd
This commit is contained in:
crc 2017-10-20 13:30:31 +00:00
parent dc92b053d7
commit 2ddce97006
6 changed files with 21 additions and 4 deletions

View file

@ -349,6 +349,7 @@ s:
s:append
s:case
s:chop
s:const
s:contains-char?
s:contains-string?
s:copy

View file

@ -2389,6 +2389,18 @@ Example:
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
s:const
ss-
Create a string constant.
Example:
'Test_String 'HELLO s:const
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
s:evaluate
s-?

File diff suppressed because one or more lines are too long

View file

@ -938,6 +938,10 @@ The format language is simple:
}}
~~~
~~~
:s:const (ss-) [ s:keep ] dip const ;
~~~
## Sets
Sets are statically sized arrays. They are represented in memory as:

View file

@ -1,7 +1,7 @@
____ _ _
|| \\ \\ //
||_// )x(
|| \\ // \\ 2017.10
|| \\ // \\ 2017.11
a minimalist forth for nga
*Rx* (*retro experimental*) is a minimal Forth implementation for the
@ -55,7 +55,7 @@ r 9999
d 1536
: Version
d 201710
d 201711
~~~
Both of these are pointers. `Dictionary` points to the most recent

BIN
ngaImage

Binary file not shown.