Re: [go-nuts] question about runtime design

2019-10-14 Thread Ian Lance Taylor
On Mon, Oct 14, 2019 at 5:53 AM wrote: > > salam. Hi gophers can any one take a look at at this snippet of code > https://play.golang.org/p/qv0N0EN81tX > and answer me why should this panic at runtime, and why the compiler > does not catch this kind of mistakes. I assume that you are asking why i

[go-nuts] Re: go 1.13.1 (linux x64): time.After not working as expected

2019-10-14 Thread Jeff Kayser
On Monday, October 14, 2019 at 5:53:23 AM UTC-7, Jeff Kayser wrote: > > I'm working through the most excellent book "Concurrency in Go", doing the > example on page 162-166. My code is here: > > https://play.golang.org/p/7kokkAIdhov > > The program is not triggering the timeout section of the c

Re: [go-nuts] go 1.13.1 (linux x64): time.After not working as expected

2019-10-14 Thread Steven Hartland
Your not checking done in your for loop. On 14/10/2019 13:39, Jeff Kayser wrote: I'm working through the most excellent book "Concurrency in Go", doing the example on page 162-166.  My code is here: https://play.golang.org/p/7kokkAIdhov The program is not triggering the timeout section of the

[go-nuts] question about runtime design

2019-10-14 Thread awh6al
salam. Hi gophers can any one take a look at at this snippet of code https://play.golang.org/p/qv0N0EN81tX and answer me why should this panic at runtime, and why the compiler does not catch this kind of mistakes. -- You received this message because you are subscribed to the Google Groups "g

[go-nuts] go 1.13.1 (linux x64): time.After not working as expected

2019-10-14 Thread Jeff Kayser
I'm working through the most excellent book "Concurrency in Go", doing the example on page 162-166. My code is here: https://play.golang.org/p/7kokkAIdhov The program is not triggering the timeout section of the code (lines 103-103 in the playground code). All of the other examples have worke

[go-nuts] Re: About package lxn/walk

2019-10-14 Thread 洪嘉鴻
Hello everyone: I've finished studying https://github.com/lxn/walk/tree/master/examples. However, there is still a problem that I'm encountering: Is there any examples about tree diagram with buttons for references? Ex: When we install software, there are multiple choices for users to choose, an

[go-nuts] Re: About package lxn/walk

2019-10-14 Thread 洪嘉鴻
Hello everyone: I've finished studying https://github.com/lxn/walk/tree/master/examples. However, there are some problems that I'm encountering: 1. I want to print the message after clicking the "Confirm" button, but I have no idea how to implement it. Here is the incompleted code: https://play.