Hello!

In golang spec, if it cast the variable, pointer that cast returns is 
changed?
Consider the following code. Do the pointers `before` and `after` hold 
different values?

```go
package main

import "fmt"

type DefinedInt int

func main() {
var before int
before = 1

after := DefinedInt(before)

fmt.Printf("before: %p\n", &before)
fmt.Printf("after : %p\n", &after)
}
```

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/8677311d-a056-41f6-a81c-ad1286c71d8an%40googlegroups.com.

Reply via email to