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

begin for @view #35115

Closed
tpapp opened this issue Mar 15, 2020 · 0 comments · Fixed by #35289
Closed

begin for @view #35115

tpapp opened this issue Mar 15, 2020 · 0 comments · Fixed by #35289

Comments

@tpapp
Copy link
Contributor

tpapp commented Mar 15, 2020

begin was introduced in #33946, but it would be nice if @view had a rewriting like replace_ref_end! for begin, too.

Currently

julia> VERSION
v"1.5.0-DEV.461"

julia> v = 1:4
1:4

julia> v[(begin + 1):(end - 1)]
2:3

julia> @view v[(begin + 1):(end - 1)]
ERROR: UndefVarError: begin not defined
Stacktrace:
 [1] top-level scope at REPL[4]:1
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

Successfully merging a pull request may close this issue.

1 participant