Skip to content

What does REQUIRED track? #182

Answered by ruv
SirWumpus asked this question in Q&A
Discussion options

You must be logged in to vote

required identifies a file by the provided name (c-addr u) at the least. Whether it takes into account the full name (beyond c-addr u) — depends on implementation. For a standard program it does not matter.

Yes, if required only tracked the base name (the name without the path), then two files with the same name form different directories could not be both loaded by required. I think, this is not an option.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SirWumpus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
clarification Rationale or explanation to the Forth standard
2 participants