I need StringToStringMap or StringToLongMap object,
that's an associative array structure.
First touch, classic way, may be:
CLASS MAP
VARIABLE KEY
VARIABLE VALUE
END-CLASS
and add the methods to find value by key
and to insert new items.
But if I have a string
S" BALANCE"
convert that string to an execution token
: BALANCE
or variable
BALANCE
and I associate the value to the xt
: BALANCE 17 ;
or to the variable
17 BALANCE !
may be I found what I need.
The question is how to convert a string ( addr n -- xt )
in an execution token or variable.
Thanks in advance,
Alberto Santini
.
Received on Thu May 18 2000 - 10:01:08 PDT
Subscribe to our e-mail list service. It's free for all SwiftForth and SwiftX users!
This archive was generated 09-Feb-2012. Archive updated nightly.