On Tuesday, March 20, 2018 at 12:38:25 PM UTC-4, Jan Mercl wrote: > > On Tue, Mar 20, 2018 at 5:18 PM T L <tapi...@gmail.com <javascript:>> > wrote: > > > For the following example, the output may be any of "1 7 2", "1 8 2" and > "1 9 2"? > > The output is "1 1 2" due to LTR evaluation order mandated by the specs: > https://play.golang.org/p/WorzfBzfOhe > > > -- > > -j >
sorry, I forget to modify "x, y := 0, 0" as "x, y := 0, 7" in the above pasted example. Yes "1 1 2" is the output of gc, but I can't find any guarantees made for this output in Go specification. -- 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.google.com/d/optout.