Maybe this issue is related:
https://github.com/JuliaLang/julia/issues/6190

On Mon, 2014-07-07 at 15:06, [email protected] wrote:
> I'm stumped by this upon loading a module I'm working on:
>
> Warning: New definition
>     +(Union(Number,NAtype),AbstractDataArray{T,N}) at deprecated.jl:26
> is ambiguous with:
>     +(Number,AbstractArray{T,N}) at array.jl:771.
> To fix, define
>     +(Number,AbstractDataArray{T,N})
> before the new definition.
> Warning: New definition
>     -(AbstractDataArray{T,N},Union(Number,NAtype)) at deprecated.jl:26
> is ambiguous with:
>     -(AbstractArray{T,N},Number) at array.jl:772.
> To fix, define
>     -(AbstractDataArray{T,N},Number)
> before the new definition.
> Warning: New definition
>     -(Union(Number,NAtype),AbstractDataArray{T,N}) at deprecated.jl:26
> is ambiguous with:
>     -(Number,AbstractArray{T,N}) at array.jl:773.
> To fix, define
>     -(Number,AbstractDataArray{T,N})
> before the new definition.
>
> Ok, no problem, I'd just look at where '+' was being used in my module, 
> right?
>
> class.jl:67:        i = i+1
> getset.jl:90:            for j in (length(args)+1):(length(actualargs))
> getset.jl:276:                i=i+1
> layer.jl:16:                i = i+1
> db.jl:95:        ret = string( modelSuffixChars[ m + 1 ] )
> db.jl:99:        ret = string( modelSuffixChars[m+1] ) * ret
> db.jl:115:        icjInstanceCount = icjInstanceCount + 1
> db.jl:118:            icjInstanceCount = icjInstanceCount + 1
> db.jl:181:            i = i + 1
> pred.jl:458:    return( r".+_pred_[0-9]+$")
> show.jl:142:    for r in o.data.currentTop:min( o.data.currentTop + 
> viewContentHeight -1, vnameslen )
> show.jl:161:        TermWin.mvwprintw( o.window, 
> r-o.data.currentTop+o.borderSizeV, o.borderSizeH, "%s", string(vnames[r]))
> show.jl:184:        elseif o.data.currentTop > o.data.datalistlen - 
> viewContentHeight + 1
> show.jl:185:            o.data.currentTop = max(1,o.data.datalistlen - 
> viewContentHeight + 1)
> show.jl:190:            o.data.currentTop = o.data.currentLine - 
> viewContentHeight + 1
> show.jl:195:        o.data.currentLine = max(1, min( o.data.datalistlen, 
> o.data.currentLine + n) )
> show.jl:207:        i = trivialstop ? start : ( mod( start-1+step, 
> vnameslen ) + 1 )
> show.jl:217:            i = mod( i-1+step, vnameslen ) + 1
> show.jl:260:                o.data.currentLine = o.data.currentTop + rely - 
> o.borderSizeH + 1
> show.jl:273:        if o.data.currentTop + viewContentHeight-1 < vnameslen
> show.jl:274:            o.data.currentTop = vnameslen - viewContentHeight + 
> 1
> xml.jl:108:        ms = match( r"([0-9]+)//([0-9]+)", content(x) )
> xml.jl:111:        ms = match( r"^(-?[0-9.e]+) *([+-] *[0-9.e]+)im", 
> content(x) )
> xml.jl:141:        i = i+1
>
> All of them are simple integer addition, just just literal '+' inside some 
> regex. How did I tickle that warning?
>
> Version info:
> julia version 0.3.0-prerelease+3884
> x86_64-apple-darwin12.5.0

-- 

Reply via email to