Ah, thank you for that example.

On Saturday, April 2, 2016 at 11:02:07 AM UTC-7, Yichao Yu wrote:
>
> On Sat, Apr 2, 2016 at 1:02 PM,  <[email protected] <javascript:>> 
> wrote: 
> > I seem to be unable to get this to work 
> > 
> >>serialize(STDOUT, :(x + 1)) 
> > =b+1 
> > 
> >>deserialize(IOBuffer("=b+1")) 
> > :call 
> > 
> > which is only form 1 out of 4. 
>
> deserializing and serializing do no use a plain text format. 
>
> julia> io = IOBuffer() 
> IOBuffer(data=UInt8[...], readable=true, writable=true, seekable=true, 
> append=false, size=0, maxsize=Inf, ptr=1, mark=-1) 
>
> julia> serialize(io, :(x + 1)) 
>
> julia> seekstart(io) 
> IOBuffer(data=UInt8[...], readable=true, writable=true, seekable=true, 
> append=false, size=9, maxsize=Inf, ptr=1, mark=-1) 
>
> julia> deserialize(io) 
> :(x + 1) 
>
>
> > 
> > Also, could you give me an example of a situation where the aliasing is 
> an 
> > issue? I'm unclear when that pops up. 
>

Reply via email to