Add a TODO about impure functions.

This commit is contained in:
Nigel Tao committed 2017-11-04 16:04:28 +11:00
1 parent 1c7a6792de
commit 36a93fa6b7
2 files changed
+2

No files matched your search

+1
View File
@@ -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.
+1
View File
@@ -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
}