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

infinite loop on constructing Vec{2}(0,0) #56

Closed
goretkin opened this issue Oct 20, 2015 · 4 comments
Closed

infinite loop on constructing Vec{2}(0,0) #56

goretkin opened this issue Oct 20, 2015 · 4 comments

Comments

@goretkin
Copy link

I don't know if it's supposed to work. I'm on Julia Version 0.4.1-pre+8

julia> Pkg.installed()["FixedSizeArrays"]
v"0.0.6"

julia> using FixedSizeArrays

julia> Vec(0,0)
FixedSizeArrays.Vec{2,Int64}((0,0))

julia> Vec{2}(0,0)
^CERROR: InterruptException:
 in call at /Users/goretkin/.julia/v0.4/FixedSizeArrays/src/constructors.jl:89 (repeats 9 times)
 in call at /Users/goretkin/.julia/v0.4/FixedSizeArrays/src/constructors.jl:84

(I can't reliably use Ctrl-C to interrupt this operation)
@sjkelly
Copy link
Contributor

sjkelly commented Oct 20, 2015

I can reproduce this on master. I don't see any reason as to why this shouldn't work. Patch incoming.

@sjkelly
Copy link
Contributor

sjkelly commented Oct 20, 2015

Err... it seems like this one is held up by JuliaLang/julia#12814

@SimonDanisch
Copy link
Owner

Stack overflows on different occasions get on my nerves as well... It's because the code for the constructors is pretty horrible and starts calling itself for cases that I don't handle.
I made a first move to tackle this in #58 .... It's not done yet, but I need to concentrate on other things today.

Best,
Simon

@mschauer
Copy link
Collaborator

👍

SimonDanisch added a commit that referenced this issue Jan 20, 2016
SimonDanisch added a commit that referenced this issue Jan 20, 2016
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

4 participants