-
Notifications
You must be signed in to change notification settings - Fork 10
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
inconsistent push operator behaviour #215
Comments
I assume that for the
since the default for However, for the
which is a completely different inconsistency. |
After discussion the exception produced by |
in order not to break backward compatibility, the runtime exceptions will only be thrown if |
…pop, push, and shift operators only if %strict-args is in effect in order to preserve backwards-compatibility with code that does not use %strict-args
…ixes refs #215 throw a runtime exception with lvalue type errors with the …
…pop, push, and shift operators only if %strict-args is in effect in order to preserve backwards-compatibility with code that does not use %strict-args
$ qore -n -e 'list l = (1,2); printf("%n\n", l);'
list: (1, 2)
$ qore -n -e 'list l = (1,2); delete l; printf("%n\n", l);'
$ qore -n -e 'list l = (1,2); delete l; push l, 3; printf("%n\n", l);'
list: (3)
$ qore -n -e 'softlist l = (1,2); delete l; push l, 3; printf("%n\n", l);'
The text was updated successfully, but these errors were encountered: