Giter VIP home page Giter VIP logo

Comments (6)

dlfivefifty avatar dlfivefifty commented on May 18, 2024

On 0.4:

julia> Cint(false)
0

from compat.jl.

garrison avatar garrison commented on May 18, 2024

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.

from compat.jl.

dlfivefifty avatar dlfivefifty commented on May 18, 2024
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).

from compat.jl.

garrison avatar garrison commented on May 18, 2024

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

from compat.jl.

timholy avatar timholy commented on May 18, 2024

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

from compat.jl.

stevengj avatar stevengj commented on May 18, 2024

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

from compat.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.