Strings are immutable: http://docs.julialang.org/en/latest/manual/strings/
You can get access to the underlying data buffer, however, by accessing the .data field. In [104]: t = "march madness" Out [104]: "march madness" In [105]: t.data[7] = "M".data[1] Out [105]: 0x4d In [106]: t Out [106]: "march Madness" On Thu, Mar 20, 2014 at 10:21 PM, J Luis <[email protected]> wrote: > Why can't we do this? (and how can I do it?) > > julia> s > "@GMTAPI@-000000\0 -R-10/0/35/45 -JM14c -Ba2 -P > lixo.ps" > > julia> s[16] = " " > ERROR: no method setindex!(ASCIIString, ASCIIString, Int64) > > >
