Re: [go-nuts] Why this global variable assignment is deleted in the infinite loop?

2021-03-12 Thread WX Lai
pecific, mysterious bugs. If you are > asking because you observe similar effects in a non-buggy program which you > are trying to optimize, we should be talking about that non-buggy program > instead. > > On Fri, Mar 12, 2021 at 7:43 AM WX Lai <0xbi...@gmail.com> wrote: &

Re: [go-nuts] Why this global variable assignment is deleted in the infinite loop?

2021-03-11 Thread WX Lai
) will return very quickly. 在2021年3月12日星期五 UTC+8 上午1:19:30 写道: > On Thu, Mar 11, 2021 at 6:12 PM WX Lai <0xbi...@gmail.com> wrote: > > > The code: https://repl.it/talk/share/The-assignment-disappeared/127774 > > > > The assignment of the global variable `isRunning` in fu

[go-nuts] Why this global variable assignment is deleted in the infinite loop?

2021-03-11 Thread WX Lai
Hi, The code: https://repl.it/talk/share/The-assignment-disappeared/127774 The assignment of the global variable `isRunning` in function `fg1` does not work at all. In fact, the assignment is deleted in the assembly (see the comment of the link above). Why the compiler works like this? It dis