16:27:00
##forth
<vms14>
i'm trying to make a simple word to list files
16:28:11
##forth
<vms14>
i assume i can trust pad-minsize and that it will always be a correct value for the pad size, it returns 132 or alike
16:29:27
##forth
<vms14>
it's an init file i have alias f='gforth /home/vms/init.fs' didn't see a init file or env var i could set for a default
16:29:58
##forth
<vms14>
wonder if i can extend it so it becomes better as a scripting language
18:51:43
##forth
<KipIngram>
"r" is to clear the stack?
18:51:58
##forth
<KipIngram>
If you're using gforth you can do that with sp0 @ sp!
18:54:12
##forth
<KipIngram>
1 2 3 4 5 ok
18:54:15
##forth
<KipIngram>
depth . 5 ok
18:54:17
##forth
<KipIngram>
sp0 @ sp! ok
18:54:19
##forth
<KipIngram>
depth . 0 ok
18:54:21
##forth
<KipIngram>
u
18:54:23
##forth
<KipIngram>
Whoops - sorry about the u.
18:54:46
##forth
<deadmarshal>
or clearstack
18:55:14
##forth
<KipIngram>
Even better - I'm no surprised gforth has it as a word - it has practically everything.
19:03:57
##forth
<ajhidd>
"it has practically everything" - very Forth-like (:
22:14:19
##forth
<tpnix>
Mecrisp-Stellaris Forth has everything a embedded designer woulkd need except the C equivalent of headers and Im finishing a design which does that without touching the Forth itself
22:14:57
##forth
<tpnix>
but as Mecrisp-Stellaris has a 20kb limit for the kernel and everything, it's 'full' anyway