Allow explicit returns of built-in status codes.

This commit is contained in:
Nigel Tao committed 2017-10-06 17:34:58 +11:00
1 parent 2e883fcc23
commit 010c4db54f
7 files changed
+43 -12

No files matched your search

+1 -4
View File
@@ -351,10 +351,7 @@ pri func decoder.decode_huffman?(dst writer1, src reader1)() {
}
length -= n
// TODO: distinguish between short and limited writes?
//
// TODO: return suspension "short write" instead of this bogus
// return error "bad Huffman code".
return error "bad Huffman code"
return suspension "short write"
}
}