Comments (6)
On 0.4:
julia> Cint(false)
0
from compat.jl.
I don't think the problem is with Sorry, I am wrong.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.
from compat.jl.
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.
It would be great if it did. Hopefully somebody with more knowledge of type conversions can comment and/or fix it.
from compat.jl.
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.
... and even then you'll need @compat Cint(n)
. Calling typealiases is not possible in Julia 0.3.
from compat.jl.
Related Issues (20)
- Compat for keepat! HOT 3
- current_exceptions implementation fails when backtrace=false
- @constprop conditionally defined, which sometimes breaks other packages HOT 3
- Add `Base.@lock` macro, which avoids allocations for locked blocks, introduced in julia v1.3
- too many dependencies HOT 1
- compat for @assume_effects
- Document what got dropped in 4.0 HOT 3
- Backport stack to 3.x branch HOT 3
- add `div(::Period, ::Period)` method that's present in 1.8
- Add `chop{suffix|prefix}`
- 2-arg @inferred problem HOT 1
- randn for AbstractFloat
- Support `round`/`trunc`/`ceil`/`floor` for `Bool`
- `@constfield` for `const` fields? HOT 1
- `sort` for `NTuple` and other iterables
- Avoid type piracy by defining distinct functions
- Unit testing syntax `@testset let` HOT 3
- Support `Iterators.flatmap` for Julia <1.9
- No release Tags since v4.10.0 ? HOT 2
- Support for `LazyString` and `lazy_str`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from compat.jl.