Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site utah-cs.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!mhuxl!ihnp4!zehntel!zinfandel!hplabs!utah-cs!carr
From: carr@utah-cs.UUCP (Harold Carr)
Newsgroups: net.lang.forth
Subject: dynamic constants
Message-ID: <3033@utah-cs.UUCP>
Date: Fri, 14-Sep-84 14:40:21 EDT
Article-I.D.: utah-cs.3033
Posted: Fri Sep 14 14:40:21 1984
Date-Received: Tue, 25-Sep-84 02:07:11 EDT
Organization: Univ of Utah CS Dept
Lines: 23



I am new to forth.  Could someone tell me how to do this
in Princeton's VaxForth?:

When loading a file that contains:

8 len data

I want 8 to be pushed (as it will be) and LEN to be defined
such that it has the effect:

here constant data allot  ( with allot getting its parameter)
                          ( from the previous push of 8)

In other words, I want to dynamically create a constant whose name
is taken from the input stream.

Any help would be much appreciated.

Harold Carr    
arpa: CARR@UTAH-20
uucp: harpo!utah-cs!carr