Re: [go-nuts] How does iota affect the types of the subsequent constants in a constant declaration?

2016-07-04 Thread GMA_OWNER via golang-nuts
Thanks for you confirmation. -- 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.goog

[go-nuts] Re: How does iota affect the types of the subsequent constants in a constant declaration?

2016-07-04 Thread GMA_OWNER via golang-nuts
Le lundi 4 juillet 2016 02:25:06 UTC, Jingguo Yao a écrit : > > Take the following code as an example: > > > package main > import ( > "fmt" > ) > const ( > First int64 = iota > Second > ) > const ( > One int64 = 1 > Two = 2 > ) > func main() { > fmt.Printf("First type: %T, Second typ

[go-nuts] Re: How does iota affect the types of the subsequent constants in a constant declaration?

2016-07-04 Thread GMA_OWNER via golang-nuts
Le lundi 4 juillet 2016 02:25:06 UTC, Jingguo Yao a écrit : > > Take the following code as an example: > > > package main > import ( > "fmt" > ) > const ( > First int64 = iota > Second > ) > const ( > One int64 = 1 > Two = 2 > ) > func main() { > fmt.Printf("First type: %T, Second typ