You can call methods that require a pointer receiver without explicitly taking the receiver's address. That's what's going on in the line you commented.
But when you pass the variable to a function, its address is not taken. If you pass &p2, it should work.
-rob
On Wednesday, April 18, 2012 1:29:59 AM UTC+2, AndyBalholm wrote:You can call methods that require a pointer receiver without explicitly taking the receiver's address. That's what's going on in the line you commented.As far as I remember, that wasn't always the case. I was pretty surprised that this behavior has changed.
Please file an issue.