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

Cint not working in 0.3.7 #89

Closed
dlfivefifty opened this issue May 20, 2015 · 6 comments · Fixed by #279
Closed

Cint not working in 0.3.7 #89

dlfivefifty opened this issue May 20, 2015 · 6 comments · Fixed by #279

Comments

@dlfivefifty
Copy link

julia> Pkg.checkout("Compat")
INFO: Checking out Compat master...
INFO: Pulling Compat latest master...
INFO: Upgrading Calculus: v0.1.6 => v0.1.8

julia> using Compat

julia> @compat(Cint(false))
ERROR: type cannot be constructed

julia> versioninfo()
Julia Version 0.3.7
Commit cb9bcae (2015-03-23 21:36 UTC)
Platform Info:
  System: Darwin (x86_64-apple-darwin13.4.0)
  CPU: Intel(R) Core(TM) i7-3820QM CPU @ 2.70GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)
  LAPACK: libopenblas
  LIBM: libopenlibm
  LLVM: libLLVM-3.3

julia> Pkg.status()
2 required packages:
 - GLPlot                        0.0.5+             master
 - Jewel                         1.0.4
37 additional packages:
 - BinDeps                       0.3.12
 - Calculus                      0.1.8
 - Color                         0.4.5
 - Compat                        0.4.4              master
 - Compose                       0.3.12
 - DataStructures                0.3.9
 - Datetime                      0.1.7
 - Docile                        0.5.2
 - DualNumbers                   0.1.3
 - FactCheck                     0.2.7
 - FixedPointNumbers             0.0.7
 - GLAbstraction                 0.0.5+             master
 - GLFW                          1.0.0-alpha.6
 - GLText                        0.0.4
 - GLWindow                      0.0.5+             master
 - Graphics                      0.1.0
 - Homebrew                      0.1.14
 - Images                        0.4.36
 - ImmutableArrays               0.0.7
 - Iterators                     0.1.8
 - JSON                          0.4.3
 - JuliaParser                   0.6.2
 - LNR                           0.0.1
 - Lazy                          0.8.4
 - Lumberjack                    0.0.3
 - ModernGL                      0.0.5+             master
 - Mustache                      0.0.9
 - NaNMath                       0.0.2
 - Quaternions                   0.0.4
 - Reactive                      0.2.0
 - Requires                      0.1.2
 - SHA                           0.0.4
 - SIUnits                       0.0.3
 - TexExtensions                 0.0.2
 - URIParser                     0.0.5
 - UUID                          0.0.2
 - Zlib                          0.1.8
@dlfivefifty
Copy link
Author

On 0.4:

julia> Cint(false)
0

@garrison
Copy link
Member

I don't think the problem is with Cint per se. It's that Julia 0.3 does not support this method of converting from Bool to an integer type (even with Compat), but 0.4 does. Sorry, I am wrong.

@dlfivefifty
Copy link
Author

But shouldn’t @compat replicate the 0.4 behaviour?

On 21 May 2015, at 1:08 am, Jim Garrison [email protected] wrote:

I don't think the problem is with Cint per se. It's that Julia 0.3 does not support this method of converting from Bool to an integer type (even with Compat), but 0.4 does.


Reply to this email directly or view it on GitHub #89 (comment).

@garrison
Copy link
Member

It would be great if it did. Hopefully somebody with more knowledge of type conversions can comment and/or fix it.

@timholy
Copy link
Member

timholy commented May 21, 2015

Just add Cint to the calltypes dict. You'll also have to define a cint method (or whatever you want to call it).

@stevengj
Copy link
Member

stevengj commented Aug 8, 2015

... and even then you'll need @compat Cint(n). Calling typealiases is not possible in Julia 0.3.

hayd referenced this issue in JuliaWeb/HttpServer.jl Sep 12, 2015
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.

4 participants