On Thursday, 24 March 2022 at 12:15:16 UTC tapi...@gmail.com wrote:

> BTW, the rewritten version outputs
>
> Init A
> Init B
> Init C
> 1   4   3
>
> On my machine (go1.18 linux/amd64).
>

It depends on the order, and the OP was positing what happens when f2.go is 
presented first to the compiler.

$ go version
go version go1.17.6 darwin/amd64

$ go run rewritten_f1.go f2.go
Init A
Init B
Init C
1   4   3

$ go run f2.go rewritten_f1.go
Init A
Init B
Init C
1   2   1 

-- 
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/8b226d07-b5ff-4fe2-992c-a312ea07a693n%40googlegroups.com.

Reply via email to