#345 TextWriter revocation is leaky

Need_for_security
open
local elib (53)
6
2007-02-22
2007-02-22
No

The TextWriter auto-revoking behavior is like a caretaker in front of a leaky Carol, rather than a membrane.

Reported by E. Dean Tribble.

? var stash := null
? def evil {
> to __printOn(out :TextWriter) {
> out.print("I am not evil")
> stash := out.indent()
> }
> }
# value: I am not evil

? [evil]
# value: [I am not evil]

? stash
# value: <a TextWriter>

? stash.println("Actually, I am evil")
Actually, I am evil
# ?
?

Discussion


Log in to post a comment.