Defer defers the esecutiin of the following expression, but not the evaluation of the arguments. So "defer fn(a==1)" will call fn when this function exists, with a bool that is true iff a _was_ 1 when the defer was registered.
-- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.