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

NAME>INTERPRET on a word without interpretation semantics #14

Open
gerryjackson opened this issue Jan 11, 2016 · 1 comment
Open

NAME>INTERPRET on a word without interpretation semantics #14

gerryjackson opened this issue Jan 11, 2016 · 1 comment

Comments

@gerryjackson
Copy link
Owner

The specification of NAME>INTERPRET in section 15.6.2.1909.20 of the Forth 2012 standard document includes "If nt has no interpretation semantics, NAME>INTERPRET returns 0."

Following a discussion on comp.lang.forth there seems to be a move to permitting words such as IF that have no interpretation semantics to be ticked. This leads to NAME>INTERPRET returning a valid xt even if that xt does something nonsensical - indeed GForth has been modified recently to do just this and so fails the current test.

This means that it is difficult if not impossible to find a standard word without interpretation semantics where NAME>INTERPRET will return 0. There is a suggestion to have a configuration file for the test suite so I propose to leave the test on NAME>INTERPRET as it is and include an option in a future configuration file where the user would specify a suitable word that returns 0 or that that particular test should be by-passed.

Any comments?

@gerryjackson
Copy link
Owner Author

gerryjackson commented Oct 6, 2016

I wrote the previous message months ago and forgot about it. As GForth has defined interpretation semantics for all words that don't have defined interpretation semantics I've changed the test so that it tries all such words in the Core word set to see if 0 is returned, If none of them do it simply displays a message stating that. It may be better to place that in the configuration file to save the user having to think about it.

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

1 participant