Proposal on latest-name
#153
ruv
started this conversation in
Show and tell
Replies: 2 comments 2 replies
-
I don't see any analysis of how existing widely-used systems do it. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Is there some sort of "user story" for why this would be interesting? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I prepared a proposal: New words:
latest-name
andlatest-name-in
(on forth-standard.org).It suggests to standardize the following words:
LATEST-NAME-IN
( wid -- nt|0 )Remove the word list identifier wid from the stack. If the corresponding word list is empty, then return
0
; otherwise, return the name token nt for the definition whose name was placed most recently into this word list.LATEST-NAME
( -- nt )Return the name token nt for the definition whose name was placed most recently into the compilation word list, if such a definition exists. Otherwise, throw the exception code
-80
.Feedback is welcome!
Beta Was this translation helpful? Give feedback.
All reactions