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
x~ cannot be set to $nil #1248
Comments
The confusing error message is a known issue, see #744. While it is true it is initalized to
A var name ending in a tilde is a function (or command if you prefer) and must be a lambda. You also can't assign a string to it:
|
@gergelyk Thanks, this is an interesting edge case. Maybe the initial value for |
@krader1961, even though
|
@gergelyk, That's an interesting use case. I'm inclined to agree with @xiaq's proposal that the initial value be changed to
|
Yup, I agree. Proposal of @xiaq sounds reasonable. |
You cannot assign $nil to a lambda var so that should not be the initial value of `var x~`. Instead, assign $builtin:nop~. Fixes elves#1248
You cannot assign $nil to a command var so that should not be the initial value of `var x~`. Instead, assign $builtin:nop~. Fixes elves#1248
Since initial value of
x~
is$nil
, I would assume that$nil
can be assigned to this variable any time.The text was updated successfully, but these errors were encountered: