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

> Aha, sorry, the file order really matters here.
> But for this specified case, it should not.
>
> That's not right. I remembered in an issue thread, it is mentioned that 
> the order should be
>
> 1. D is not ready (because it depends on A)
> 2. A is ready, so it is initialized: it gets value 3.
> 4. B is initialized. It gets value 2
> 5. C is initialized. It gets value 1
> 3. Now D is the earliest variable which is ready, so D is initialized. It 
> gets value 1, and A is set to 1.
>

Can you quote your source for that?

-- 
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/b2311bf1-b2f6-4eb6-ba98-553550d6c55cn%40googlegroups.com.

Reply via email to