summaryrefslogtreecommitdiff
path: root/test/files/run/t5271_3.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-04-23 06:12:57 -0700
committerPaul Phillips <paulp@improving.org>2012-04-23 06:20:25 -0700
commitb47189ad06e027c310d93b071fc8bf15d979225d (patch)
tree14761012df05e3685eb3fbcb6dc45aa12e642b27 /test/files/run/t5271_3.scala
parent8c95273b70288e4e3a547fa43f2dbdb40a71b9ea (diff)
downloadscala-b47189ad06e027c310d93b071fc8bf15d979225d.tar.gz
scala-b47189ad06e027c310d93b071fc8bf15d979225d.tar.bz2
scala-b47189ad06e027c310d93b071fc8bf15d979225d.zip
Fix for range positions.
You are a fireman, leading a team of firemen on a rescue in a burning building. When you have cleared a room, you place a sticker on the door which says "Room cleared!" If the other firemen see that sticker, they will skip that room, knowing there are no small children or adorable puppies behind it. As the lead fireman, here is what you should not do: run from door to door slapping "Room cleared!" stickers on them all, so the other firemen shrug and go home. Translation: when recursion depends on a condition, if you alter the condition before you recurse, you may not recurse at all.
Diffstat (limited to 'test/files/run/t5271_3.scala')
0 files changed, 0 insertions, 0 deletions