Replies: 2 comments
-
See #9867 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you for the link @dlech. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
The comments in the code snippets below explain the problems.
Tested at RaspberryPi Pico with rp2-pico-20220618-v1.19.1.uf2,
and also with rp2-pico-20230331-unstable-v1.19.1-995-g0a3600a9a.uf2
Example with syntax error (reason for my investigation):
Example with (only, but even worse) a wrong result
As long as it behaves like this, there should be a warning in the documentation,
that const() always (even if it's used locally) creates/replaces a global name.
Wouldn't it be possible to prevent the use of a pre-existing name in the const-assignment?
Beta Was this translation helpful? Give feedback.
All reactions