diff --git a/REQUIRE b/REQUIRE index 94237c0..9e74e5b 100644 --- a/REQUIRE +++ b/REQUIRE @@ -1 +1,2 @@ julia 0.5 +Compat 0.9.5 diff --git a/src/MATLAB.jl b/src/MATLAB.jl index 55fe50b..6b4b233 100644 --- a/src/MATLAB.jl +++ b/src/MATLAB.jl @@ -2,6 +2,8 @@ __precompile__() module MATLAB +using Compat.take! + import Base: eltype, close, size, copy, ndims, unsafe_convert # mxarray diff --git a/src/engine.jl b/src/engine.jl index aca4f67..d5b4e1b 100644 --- a/src/engine.jl +++ b/src/engine.jl @@ -259,7 +259,7 @@ function mxcall(session::MSession, mfun::Symbol, nout::Integer, in_args...) end print(buf, ");") - stmt = takebuf_string(buf) + stmt = String(take!(buf)) # put variables to MATLAB diff --git a/src/mstatements.jl b/src/mstatements.jl index 094b744..31fecc9 100644 --- a/src/mstatements.jl +++ b/src/mstatements.jl @@ -151,5 +151,5 @@ end function mstatement(ex::Expr) ss = IOBuffer() write_mstatement(ss, ex) - takebuf_string(ss) + String(take!((ss))) end