Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined word $" in utilities.fth #22

Open
haroldrabbie opened this issue Oct 27, 2017 · 1 comment
Open

Undefined word $" in utilities.fth #22

haroldrabbie opened this issue Oct 27, 2017 · 1 comment

Comments

@haroldrabbie
Copy link

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

@gerryjackson
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants