forth2012-test-suite icon indicating copy to clipboard operation
forth2012-test-suite copied to clipboard

Undefined word $" in utilities.fth

Open haroldrabbie opened this issue 6 years ago • 1 comments

The last line of utilities.fth reads: CR $" Test utilities loaded" TYPE CR

There is no such word $"

Maybe it was intended to read: CR S" Test utilities loaded" TYPE CR

But use of S" in interpretation mode is not actually in the core word set. See 6.1.2165 in the Forth 2012 document.

To be consistent with the other test files, this line should be changed to: CR .( Test utilities loaded) CR

haroldrabbie avatar Oct 27 '17 22:10 haroldrabbie

Sorry to contradict you but $" is defined on line 102 in utilities.fth for use in interpretation mode. It was introduced purely to avoid use of S" in that mode. It is tested just above the line you quoted.

In fact the other test files should be changed to use $" at the end of the files replacing .( which is a Core Extension word. That was the intention but had slipped my mind. I'll add it to the todo list. Thanks for reminding me.

gerryjackson avatar Oct 28 '17 04:10 gerryjackson