Am I doing something wrong or is this a bug? It seems like if the 1st 
version works, the 2nd and 3rd should, too.

julia> mktemp(println)
/var/folders/jd/1skd5rh11hnc_s19lmx93zyw0000gp/T/tmpf7HaUHIOStream(<fd 18>)


julia> mktemp(x->println(x))
ERROR: wrong number of arguments
 in anonymous at none:1
 in mktemp at file.jl:218
 in mktemp at file.jl:216


julia> mktemp() do x
         println(x)
       end
ERROR: wrong number of arguments
 in anonymous at none:2
 in mktemp at file.jl:218
 in mktemp at file.jl:216
 


julia> versioninfo()
Julia Version 0.4.7
Commit ae26b25* (2016-09-18 16:17 UTC)
Platform Info:
  System: Darwin (x86_64-apple-darwin15.6.0)
  CPU: Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.3

Reply via email to