From 36a93fa6b7d7f064fc7ea01be4ea830a6cc6725d Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Sat, 4 Nov 2017 16:04:28 +1100 Subject: [PATCH] Add a TODO about impure functions. --- std/flate/decode_zlib.puffs | 1 + std/gif/decode_lzw.puffs | 1 + 2 files changed, 2 insertions(+) diff --git a/std/flate/decode_zlib.puffs b/std/flate/decode_zlib.puffs index 6653a65a..2af48e24 100644 --- a/std/flate/decode_zlib.puffs +++ b/std/flate/decode_zlib.puffs @@ -66,6 +66,7 @@ pri struct adler32?( state u32 = 1, ) +// TODO: add a ! as this function is impure. pri func adler32.update(x[] u8)(checksum u32) { // The Adler-32 checksum's magic 65521 and 5552 numbers are discussed in // RFC 1950. diff --git a/std/gif/decode_lzw.puffs b/std/gif/decode_lzw.puffs index 9ae91ada..ad09b51e 100644 --- a/std/gif/decode_lzw.puffs +++ b/std/gif/decode_lzw.puffs @@ -24,6 +24,7 @@ pub struct lzw_decoder?( prefixes[4096] u16[..4095], ) +// TODO: add a ! as this function is impure. pub func lzw_decoder.set_literal_width(lw u32[2..8] = 8)() { this.literal_width = in.lw }