Re: Forth utilities?
- From: mhx@xxxxxx (Marcel Hendrix)
- Date: Sun, 29 Apr 2007 14:10:20 +0200
Frank Buss <fb@xxxxxxxxxxxxx> wrote Re: Forth utilities?
For Lisp there is a collection of small utilities:
http://common-lisp.net/project/cl-utilities/
http://common-lisp.net/project/cl-utilities/doc/
Do you know something like this for Forth? In the spirit of Forth it should[..]
be a collection of small words or code snippets, for combining to bigger
solutions or for modifying to fit similar problems.
The utilities collection should show good Forth coding style, too, which is
useful if newbies like me wants to learn Forth, and every utility should
have at least one example how to use it.
There are a few collections which should turn up after a halfways serious
search.
Wil Baden's Toolbelt is available for most implementations.
Coding-style is a matter of taste. The fact that the Toolbelt was
ported to a number of systems in a couple of days (a community effort,
including language lawyering and getting people to really do something)
tells me it's serviceable at least.
BTW: Is there already a function for pasting normal strings to memory? I
found just s" , which is defined for compilation mode, only. But this is a
problem, if you need the string as part of an in-memory structure.
S" must work in interpretive mode also (assuming the FILE wordset is available).
You may be thinking of C" .
Most Forths have something called ," which may be what you want. If not, it's
S" followed by a simple loop containing C, .
-marcel
.
- Follow-Ups:
- Re: Forth utilities?
- From: Frank Buss
- Re: Forth utilities?
- References:
- Forth utilities?
- From: Frank Buss
- Forth utilities?
- Prev by Date: Forth utilities?
- Next by Date: Re: Forth utilities?
- Previous by thread: Forth utilities?
- Next by thread: Re: Forth utilities?
- Index(es):