[Glass] How replace in String works

BrunoBB smalltalk at adinet.com.uy
Wed Jan 15 08:56:27 PST 2020


Hi,
GS 3.4.1

Why:
'123'  at: 3 put: $4; yourself.        "rise an exception"
'123' copy at: 3 put: $4; yourself   "works ok"

My problem was using replaceAll:with: but the "culprit" was at:put: in
Strings.

'123' copy isInvariant "answer false"
'123' isInvariant "answer true"

regards,
bruno



--
Sent from: http://forum.world.st/GLASS-f1460844.html


More information about the Glass mailing list