Private global definitions #59
HuseyinSimsek7904
started this conversation in
Ideas
Replies: 1 comment
-
One way to implement something like this may be private definitions.
This approach would work well for procedures, however macros will not work as expected. This is because macros directly copy their tokens, which means that they can not have access to names that the expander procedure does not have access to. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Consider this piece of code from the standard library.
In this piece of code, there are macros that should only be accessible inside list64.corth. In Corth, there should be a way to tell the compiler which parts have access to specific parts of code. This would improve the compilation times as well since the compiler needs to check fewer definitions while trying to compile procedures.
Beta Was this translation helpful? Give feedback.
All reactions