mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 16:52:18 +01:00
Add comment to consider side effects.
This commit is contained in:
1 parent
f9de8950e4
commit
599bdffb5a
1 file changed
+3
@@ -723,6 +723,9 @@ func (g *gen) writeExpr(n *a.Expr, rp replacementPolicy, depth uint32) error {
|
|||||||
}
|
}
|
||||||
// TODO: check that this works with nested call-suspendibles:
|
// TODO: check that this works with nested call-suspendibles:
|
||||||
// "foo?().bar().qux?()(p?(), q?())".
|
// "foo?().bar().qux?()(p?(), q?())".
|
||||||
|
//
|
||||||
|
// Also be aware of evaluation order in the presence of side effects:
|
||||||
|
// in "foo(a?(), b!(), c?())", b should be called between a and c.
|
||||||
g.printf("%s%d", tPrefix, g.perFunc.tempR)
|
g.printf("%s%d", tPrefix, g.perFunc.tempR)
|
||||||
g.perFunc.tempR++
|
g.perFunc.tempR++
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in new issue
Block a user