Zero incompatibility? Resolved – Getting Help

Greetings.

I have this code:

var x *t =   &         .... some more code
fmt.Printf("%v, %v\n", x, x == nil)

and it prints this:

<nil>, false

I should have taken the problem out of the whole thing, but it’s quite a big one. It’s a pointer, it’s probably null because it also raises an exception when it’s referenced. But I can’t check for null and can’t be true. In what case would this happen?

Sorry, got it. If gcflacs was set to -B and got the pointer from a bad location.

Still, I wish it had told me something more “true”.


Leave a Comment