> The question is how to convert a string ( addr n -- xt )
> in an execution token or variable.
Alberto,
Maybe you can find inspiration here:
http://www.neverslow.com/fom/swiftforth/fom-serve/cache/38.html
The idea is to convert the string to a number (using hash code)
Put this hnumber in a list or in a sorted table. (do you need very fast access?)
Manage (or reject) hash code collisions (when 2 strings have the same hcode representation).
Charles
----- Original Message -----
From: "SF Talk" <sftalk_at_forth.com>
To: "SF Talk" <sftalk_at_forth.com>
Sent: Thursday, May 18, 2000 10:04 AM
Subject: Associative array
> Date: Thu, 18 May 2000 10:01:08 +0200
> From: "Alberto Santini" <Alberto_Santini_at_bpm.it>
> Subject: Associative array
.
Received on Thu May 18 2000 - 11:21:14 PDT
Subscribe to our e-mail list service. It's free for all SwiftForth and SwiftX users!
This archive was generated 08-Feb-2012. Archive updated nightly.