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

Missing Channel constructor? #14570

Closed
andrioni opened this issue Jan 6, 2016 · 3 comments
Closed

Missing Channel constructor? #14570

andrioni opened this issue Jan 6, 2016 · 3 comments
Labels
domain:io Involving the I/O subsystem: libuv, read, write, etc. Hacktoberfest Good for Hacktoberfest participants kind:good first issue Indicates a good issue for first-time contributors to Julia

Comments

@andrioni
Copy link
Member

andrioni commented Jan 6, 2016

julia> Channel()
Channel{Any}(sz_max:32,sz_curr:0)

julia> Channel{Int64}()
ERROR: MethodError: `convert` has no method matching convert(::Type{Channel{Int64}})
This may have arisen from a call to the constructor Channel{Int64}(...),
since type constructors fall back to convert methods.
Closest candidates are:
  convert{T}(::Type{T}, ::T)
  Channel{T}(, ::Any)
  call{T}(::Type{T}, ::Any)
 in call at essentials.jl:59
 in eval at ./boot.jl:265

julia> Channel{Int64}(100)
Channel{Int64}(sz_max:100,sz_curr:0)

This is at commit 8fb848a.

@kshyatt
Copy link
Contributor

kshyatt commented Aug 2, 2016

This is reproducible on latest master.

@kshyatt kshyatt added domain:io Involving the I/O subsystem: libuv, read, write, etc. kind:good first issue Indicates a good issue for first-time contributors to Julia labels Aug 2, 2016
@kshyatt kshyatt added the Hacktoberfest Good for Hacktoberfest participants label Oct 5, 2016
@miguelraz
Copy link
Contributor

miguelraz commented Oct 10, 2017

Can't reproduce - got deprecated. Time to close?

julia> Channel{Int64}()                                                                               
WARNING: The empty constructor Channel() is deprecated.
 The channel size needs to be specified explictly. Defaulting to Channel{Int64}(32).   

julia> versioninfo()
JuliaVersion 0.6.0                                                                                   
Commit 903644385b* (2017-06-19 13:05 UTC)                                                             
Platform Info:                                                                                          
OS: Windows (x86_64-w64-mingw32)                                                                      
CPU: AMD Athlon(tm) II X2 250 Processor                                                               
WORD_SIZE: 64                                                                                         
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Barcelona)                                   
LAPACK: libopenblas64_                                                                                
LIBM: libopenlibm                                                                                     
LLVM: libLLVM-3.9.1 (ORCJIT, amdfam10)  

@fredrikekre
Copy link
Member

#18832

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:io Involving the I/O subsystem: libuv, read, write, etc. Hacktoberfest Good for Hacktoberfest participants kind:good first issue Indicates a good issue for first-time contributors to Julia
Projects
None yet
Development

No branches or pull requests

4 participants