[Glass] write stream problem with quotes

Dale Henrichs dale.henrichs at gemtalksystems.com
Fri Feb 14 16:30:20 PST 2014


Paul is correct ... the literal strings are invariant, so you can't
accidentally or on purpose change the semantics of a compiled method by
fiddling with a String literal ...

You can create your own invariant objects if you want to (invariant objects
are useful in some contexts) by sending the #immediateInvariant and test
using #isInvairant ...

Dale


On Fri, Feb 14, 2014 at 4:25 PM, Paul DeBruicker <pdebruic at gmail.com> wrote:

> Use
>
> String new
>
> rather than
>
>
> ''
>
>
>
>
>
>
>
>
> Mariano Martinez Peck wrote
> > Hi guys,
> >
> > I am trying to write a stream and this simply fails:
> >
> > '' writeStream nextPutAll: ' '' '
> >
> > with a
> >
> > a ArgumentTypeError occurred (error 2031), reason:markWritten.a, Attempt
> > to
> > modify invariant object,
> >
> > Any idea?
> >
> > thanks
> >
> > --
> > Mariano
> > http://marianopeck.wordpress.com
> >
> > _______________________________________________
> > Glass mailing list
>
> > Glass at .gemtalksystems
>
> > http://lists.gemtalksystems.com/mailman/listinfo/glass
>
>
>
>
>
> --
> View this message in context:
> http://forum.world.st/Glass-write-stream-problem-with-quotes-tp4743914p4743916.html
> Sent from the GLASS mailing list archive at Nabble.com.
> _______________________________________________
> Glass mailing list
> Glass at lists.gemtalksystems.com
> http://lists.gemtalksystems.com/mailman/listinfo/glass
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20140214/24233e53/attachment-0001.html>


More information about the Glass mailing list