-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[superseded] fix #12996 #12997
[superseded] fix #12996 #12997
Conversation
I understand the desire to put it into system.nim, but I don't understand #12996 yet so please be a little patient. :-) |
The bug is simple: include inclrtl is only enabled for non js target, so since is not visible in js mode, hence the regression |
Why not include it all the time then? |
well that's the alternative i had written up in top post:
but as i mentioned, it's not so good to include inclrtl especially since it has nothing to do with inclrtl (and include is a code smell IMO). related question: I never understood the rationale for : |
Well
Looks somewhat hard to implement but more importantly, I considered |
good point regarding not making since As a concrete example, see how this would play out here with # in strtabs.nim:
from system {.privateImport.} import since besides removing most needs for |
I fixed it differently. |
superseded by #14188 |
invalid pragma: since
with nim js #12996include "system/inclrtl"
(even for nim js) to strtabs.nim but IMO since does not belong in inclrtl: