Implementing >NUMBER without parts of the Double-Word set #131
-
|
Curious how one would implement the core word It works, but seems like a cheat. How would this be done without parts of the double word set? Do implementers just add Shouldn't the Core Word Set contain all the words necessary (like |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
">NUMBER" does not have to be implemented in Forth. It could be in C, or ASM, or whatever language the core is written in. I suspect that most if not all useable Forth implementations - as opposed to proofs of concept that nobody really uses and are probably not fully conformant - do implement double numbers. If that is correct, the question is largely hypothetical and the "misplaced" thing is essentially nit-picking. |
Beta Was this translation helpful? Give feedback.
-
|
Just for reference, The words And the word Therefore, |
Beta Was this translation helpful? Give feedback.
">NUMBER" does not have to be implemented in Forth. It could be in C, or ASM, or whatever language the core is written in.
I suspect that most if not all useable Forth implementations - as opposed to proofs of concept that nobody really uses and are probably not fully conformant - do implement double numbers. If that is correct, the question is largely hypothetical and the "misplaced" thing is essentially nit-picking.