commit | 9346c6d901b3714b2a39967d6f0fee5b82201c78 | [log] [tgz] |
---|---|---|
author | Russ Cox <rsc@golang.org> | Tue Jul 28 20:01:00 2009 -0700 |
committer | Russ Cox <rsc@golang.org> | Tue Jul 28 20:01:00 2009 -0700 |
tree | 8a67b2efe49f8ab0283f63357abc34358617d955 | |
parent | 83940d7c4a2a7ddf5c485f2745573552b096775c [diff] |
make every func literal expression allocate, so that == on func means that the functions originated in the same execution of a func literal or definition. before, there was an inconsistency: func() {x++} != func() {x++} but func() {} == func() {} this CL makes the second case != too, just like make(map[int]int) != make(map[int]int) R=r DELTA=202 (71 added, 62 deleted, 69 changed) OCL=32393 CL=32398