cc:ing Keno and Jameson as the authors of DevNull. On Sun, Dec 7, 2014 at 10:28 PM, K Leo <cnbiz...@gmail.com> wrote:
> Even if I could check something like the following is better: > > isopen(DevNull) > > > On 2014年12月08日 11:08, Matt Bauman wrote: > >> It'd be nice if the DevNull object (http://docs.julialang.org/en/ >> latest/stdlib/base/#Base.DevNull) would work for this, but it seems like >> it only works for command redirection right now: >> >> | >> julia> run(`echo "Hello"` |> DevNull) >> >> julia> print(DevNull, "Hello") >> ERROR: type DevNullStream has no field status >> in isopen at stream.jl:286 >> in check_open at stream.jl:293 >> in write at stream.jl:730 >> in print at ascii.jl:93 >> | >> >> >> >> On Sunday, December 7, 2014 7:24:53 PM UTC-5, K leo wrote: >> >> At times I don't want to output anything, so I pass a null >> IOStream to a >> function that requires an IOStream. How to do that? >> >> >