At 2:13 PM +0100 11/6/02, Leopold Toetsch wrote:
Substr should generate a new string and stick that into S0.Peter Gibbs wrote:Leopold Toetsch wrote:string_set is currently only used in string_substr, but, when people are ok with this, can be used everywhere in core.ops, where a string register is globbered.
The behaviour of the following program has changed, is this correct? set S0, "test" set S1, S0 set S2, "another" substr S0, S2, 1, 3 print S1 print "\n" endYes you are right. Before: test now: not The questions are (and this is IMHO the same problem with PMCs): - set vs assign - what should this program do
If we want to build a fast version that reuses a string register, I'm fine with that--it's definitely useful in a large number of circumstances, large enough to warrant expressing both sets of semantics.
--
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
[EMAIL PROTECTED] have teddy bears and even
teddy bears get drunk