Message from discussion
wordlist
Path: g2news1.google.com!postnews.google.com!m16g2000yqc.googlegroups.com!not-for-mail
From: George Hubert <georgeahub...@yahoo.co.uk>
Newsgroups: comp.lang.forth
Subject: Re: wordlist
Date: Fri, 5 Feb 2010 11:24:00 -0800 (PST)
Organization: http://groups.google.com
Lines: 48
Message-ID: <0e5a45c5-e6b4-4592-b365-68f06fc47bbd@m16g2000yqc.googlegroups.com>
References: <fa78166a-d4d9-4965-a771-ce8b8bc60ffa@19g2000yql.googlegroups.com>
NNTP-Posting-Host: 94.196.146.58
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1265397840 6306 127.0.0.1 (5 Feb 2010 19:24:00 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 5 Feb 2010 19:24:00 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: m16g2000yqc.googlegroups.com; posting-host=94.196.146.58;
posting-account=-_QKXwoAAABWr0IBoR8ulux85oH2muFK
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6.3;
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ),gzip(gfe),gzip(gfe)
On Feb 5, 3:00=A0pm, Doug Hoffman <glide...@gmail.com> wrote:
> Is there an ANS compatible way to have wordlists survive (persist) a
> dictionary image save?
>
> To be specific, when I perform the following sequence I get an error.
> The Forth used is Carbon MacForth which I believe is (fully?) ANS
> compatible. =A0I don't mind if some "housekeeping" before and/or after
> saving the image needs to be done to make it work, but I have no idea
> how to do it, ANSly or otherwise. =A0I am only interested in an ANS
> solution.
>
> Thanks in advance.
>
> -Doug
>
> \ *** begin code sequence
>
> 0 value myWL
>
> wordlist to myWL
>
> \ save dictionary image now, quit, and then relaunch with new image
>
> myWL set-current
>
> : test ; =A0\ error or crash
Try
\ *** begin code sequence
wordlist constant myWL
\ save dictionary image now, quit, and then relaunch with new image
myWL set-current
: test ;
If it works then values must be reset in saved images, so can't
be used for wordlists.
George Hubert