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

"void" can be used as name for variable. #29

Closed
GoogleCodeExporter opened this issue Mar 22, 2015 · 3 comments
Closed

"void" can be used as name for variable. #29

GoogleCodeExporter opened this issue Mar 22, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Run latest sample from svn.
2. Enter expression "void = 15" (without "").
3. See the result.

What is the expected output? What do you see instead?
I expect that "void" cannot be used as name for variable, because "void" is 
ToString() output of variables with type VOID.

The above expression is instead true and 15 is assigned to void.


Original issue reported on code.google.com by Rotter.M...@gmail.com on 16 Apr 2013 at 6:58

@GoogleCodeExporter
Copy link
Author

"void" is not a keyword in muparserx at the moment. I don't see the need to act 
preemptively. A variable named "void" does work in every aspect of muparserx so 
there are no real problems with naming a variable "void".

Original comment by ib...@gmx.info on 16 Apr 2013 at 3:47

@GoogleCodeExporter
Copy link
Author

Sorry, I don't want to have it banned at least not for now. "void" is currently 
not a keyword in muparserx and the only reason for banning certain names should 
be to avoid collisions with keywords. Too many tests and checks will interfere 
with the useability especially if there they impose artificial restrictions.

Original comment by ib...@gmx.info on 16 Apr 2013 at 4:17

@GoogleCodeExporter
Copy link
Author

I closed the issue as i don't see it as a bug

Original comment by ib...@gmx.info on 8 Jul 2013 at 8:34

  • Changed state: WontFix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant