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

constructor for 0 dimensional array on julia 0.4 and 0.5 #303

Closed
musm opened this issue Jan 13, 2017 · 1 comment
Closed

constructor for 0 dimensional array on julia 0.4 and 0.5 #303

musm opened this issue Jan 13, 2017 · 1 comment

Comments

@musm
Copy link
Contributor

musm commented Jan 13, 2017

It is not possible to construct a 0 dimensional array as follows

Array{Int,0}()

in Julia 0.4. and 0.5.

It's also not possible to construct a 0 dimensional array as follows in julia 0.4 (but is valid in 0.5)

Array{Int,0}(())

Would it be possible to support such a syntax by defining the requisite constructors or would this require a @compat macro?

@musm musm changed the title constructor for 0 dimensional array on julia 0.4 constructor for 0 dimensional array on julia 0.4 and 0.5 Jan 13, 2017
@musm
Copy link
Contributor Author

musm commented Jan 15, 2017

Closing this, because I think I should have just used a Ref instead for my use case.

@musm musm closed this as completed Jan 15, 2017
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