Skip to content

NAME>INTERPRET on a word without interpretation semantics #14

@gerryjackson

Description

@gerryjackson

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions