carr@utah-cs.UUCP (04/03/87)
In Forth-83, is there, or how can I build, a variation of CREATE, which, instead of taking it input from the input stream: create <name> will take a counted string from the stack: create ( addr -- ) ??? What I want to do is make a defining word :: test ( ... ) ; which will do one of two defining actions depending on whether or not the token following the :: is already defined. It is straightforward to make :: create a counted string of the token following it in PAD, then use FIND to determine if that word is already defined. If it is then some arbitrary action will be taken. If it isn't, then I want to define it. That's where I get stuck. If I had a variation of CREATE that used the counted string I'd be in business. Any ideas?? Thanks, Harold