Make mark a method, not a keyword.

This commit is contained in:
Nigel Tao committed 2017-10-26 12:31:27 +11:00
1 parent 36f5ae9bf4
commit 474a0d2ed7
11 files changed
+89 -17

No files matched your search

+1 -2
View File
@@ -117,8 +117,7 @@ pub struct flate_decoder?(
pub func flate_decoder.decode?(dst writer1, src reader1)() {
while true {
// TODO: this could be "in.dst.mark()" instead of a keyword.
mark in.dst
in.dst.mark()
var z status = try this.decode_blocks?(dst:in.dst, src:in.src)
if not z.is_suspension() {
// TODO: rename "return" to "raise"?