print takes an IO parameter so

julia> println(STDERR, "test")
test

julia> io = IOBuffer()
IOBuffer(data=Uint8[...], readable=true, writable=true, seekable=true, 
append=false, size=0, maxsize=Inf, ptr=1, mark=-1)

julia> print(io, "test")

julia> bytestring(io)
"test"

works.

On Tuesday, September 9, 2014 7:14:50 PM UTC-4, Patrick O'Leary wrote:
>
> On Tuesday, September 9, 2014 6:03:14 PM UTC-5, muraveill wrote:
>>
>> Thanks! I missed this one.
>> But it adds no newline, which is not the greatest for debugging (outside 
>> of the REPL). "showln" ?
>>
>
> Consider using the @show macro:
>
> @show f
>
> `@show` is also useful for displaying expressions:
>
> @show foo = bar + baz
>
> Patrick
>

Reply via email to