Submitted: https://github.com/JuliaLang/Compat.jl/pull/34

// T

On Friday, December 26, 2014 11:08:16 PM UTC+1, Tomas Lycken wrote:
>
> Thanks - then at least I know that it's not a user error. I'll take a look 
> at Compat and see if I can figure out a fix.
>
> // Tomas
>
> On Friday, December 26, 2014 11:07:14 PM UTC+1, Ivar Nesje wrote:
>>
>> If it can't be fixed in Compat, we might consider it a bug in Julia 0.3 
>> and fix it in a new 0.3.5 point release.
>>
>> Ivar
>>
>> kl. 23:03:51 UTC+1 fredag 26. desember 2014 skrev Ivar Nesje følgende:
>>>
>>> I think this have to be fixed in Compat, so that's probably the right 
>>> place to open an issue (or preferably a PR).
>>>
>>> You also don't need @compat, because (currently) Compat just generically 
>>> defines 
>>> the new functions 
>>> <https://github.com/JuliaLang/Compat.jl/blob/73c4a03c82928bed5656103ccfede9a5c878656d/src/Compat.jl#L40-48>
>>>  
>>> on Julia 0.3.
>>>
>>> Ivar
>>>
>>> kl. 19:52:34 UTC+1 fredag 26. desember 2014 skrev Tomas Lycken følgende:
>>>>
>>>> I don't know if this is a problem with core Julia, with Compat.jl or 
>>>> with my own code, but I can't figure out how to get this working.
>>>>
>>>> On Julia 0.3, I can do iround(1//2) without problems (yielding 1), but 
>>>> I can't figure out how to do this with the 0.4 method names and Compat: 
>>>>
>>>> julia> using Compat
>>>>
>>>> julia> @compat round(Int, 1//2)
>>>> ERROR: `iround` has no method matching iround(::Type{Int64}, 
>>>> ::Rational{Int64})
>>>>  in round at /home/tlycken/.julia/v0.3/Compat/src/Compat.jl:45
>>>>
>>>> Am I doing something wrong here, or should I file an issue? If I 
>>>> should, is the problem with Compat.jl or with core Julia?
>>>>
>>>> Thanks,
>>>>
>>>> // T
>>>>
>>>

Reply via email to