From ef471cf444f447fd8e1ae7ffc21f36e89ac44a78 Mon Sep 17 00:00:00 2001 From: Jonathan Wright Date: Sun, 4 Nov 2007 15:09:23 +1300 Subject: [PATCH] Updating built in Io code to use += instead of x = x + y --- libs/iovm/io/B_Sequence.io | 2 +- libs/iovm/io/Block.io | 6 +++--- libs/iovm/io/File.io | 2 +- libs/iovm/io/UnitTest.io | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libs/iovm/io/B_Sequence.io b/libs/iovm/io/B_Sequence.io index e25ee6d..ca7662f 100644 --- a/libs/iovm/io/B_Sequence.io +++ b/libs/iovm/io/B_Sequence.io @@ -98,7 +98,7 @@ Sequence do( r := list separators foreach(separator, j := findSeq(separator, i) ifNil( - skipped = skipped + 1 + skipped += 1 continue ) r append(slice(i, j)) diff --git a/libs/iovm/io/Block.io b/libs/iovm/io/Block.io index cfd2ecd..65822c7 100644 --- a/libs/iovm/io/Block.io +++ b/libs/iovm/io/Block.io @@ -42,7 +42,7 @@ getSlot("Block") do( newLine := method( buffer appendSeq("\n") - lineNumber = lineNumber + 1 + lineNumber += 1 isLineEmpty = true ) @@ -83,9 +83,9 @@ getSlot("Block") do( ) formatIndentedMessage := method(msg, - depth = depth + 1 + depth += 1 formatMessage(msg) - depth = depth - 1 + depth -= 1 ) formatMessage := method(msg, diff --git a/libs/iovm/io/File.io b/libs/iovm/io/File.io index 47f643f..cee7c4e 100644 --- a/libs/iovm/io/File.io +++ b/libs/iovm/io/File.io @@ -26,7 +26,7 @@ File do( waited := 0 while(lockFile exists, wait(waitTime) - waited = waited + waitTime + waited += waitTime if(waited > timeout, Exception raise("unable to acquire lock on " .. path)) ) lockFile open close diff --git a/libs/iovm/io/UnitTest.io b/libs/iovm/io/UnitTest.io index 7ae0fad..0b19e3d 100644 --- a/libs/iovm/io/UnitTest.io +++ b/libs/iovm/io/UnitTest.io @@ -97,7 +97,7 @@ TestSuite := Object clone do( //Collector collect test run ) - testCount = testCount + test testCount + testCount += test testCount exceptions appendSeq(test exceptions) ) -- 2.11.4.GIT