Skip to content
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

Bug: can't create a variable with the same name as a parameter #1003

Closed
dc42 opened this issue May 14, 2024 · 1 comment
Closed

Bug: can't create a variable with the same name as a parameter #1003

dc42 opened this issue May 14, 2024 · 1 comment
Assignees
Labels
bug Bug that has been reproduced Documentation
Milestone

Comments

@dc42
Copy link
Collaborator

dc42 commented May 14, 2024

Running RRF 3.5.1+ in standalone mode. Given the following macro called testparam:

var G = null
if exists(param.L)
    set var.G = param.L
 
var L = 1
echo "testparam finished"

If it is invoked thus:

m98 p"/macros/testparam"

then it runs to completion; but if it is invoked like this:

m98 p"/macros/testparam" L100

it provokes the following message:

Error: in file macro line 5 column 8: meta command: variable 'L' already exists

Local variable and parameters should occupy distinct namespaces.

@dc42 dc42 added this to the 3.5.2 milestone May 14, 2024
@dc42 dc42 self-assigned this May 14, 2024
@T3P3 T3P3 added the bug Bug that has been reproduced label May 14, 2024
@T3P3 T3P3 modified the milestones: 3.5.2, After 3.5.2 May 22, 2024
@dc42
Copy link
Collaborator Author

dc42 commented Jul 28, 2024

Fixed in 3.6-dev and back ported to 3.5-dev

@dc42 dc42 closed this as completed Jul 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug that has been reproduced Documentation
Projects
None yet
Development

No branches or pull requests

3 participants