Re: [go-nuts] Channel receive operator. Untyped boolean result.

2020-06-22 Thread Laevus Dexter
I get it, thanks.

-- 
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/f398f2e2-0d13-4f11-aca1-3f8b31190530o%40googlegroups.com.


[go-nuts] Channel receive operator. Untyped boolean result.

2020-06-21 Thread Laevus Dexter

>
> A receive expression used in an assignment 
>  or initialization of the 
> special form
>
> x, ok = <-ch
> x, ok := <-ch
> var x, ok = <-ch
> var x, ok T = <-ch
>
> yields an additional untyped boolean result reporting whether the 
> communication succeeded. The value of ok is true if the value received 
> was delivered by a successful send operation to the channel, or false if 
> it is a zero value generated because the channel is closed and empty.
>

Why it's untyped? And how to make the last expression to work? Seems I 
can't use anything but bool. 

-- 
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/0713b282-00ae-4119-bbe9-559ca912aa82o%40googlegroups.com.


Re: [go-nuts] asmcgocall and async preemption

2020-03-29 Thread Laevus Dexter
I see, thank you.

-- 
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/1dc631bb-0bcd-47b5-b219-e83d961e40dc%40googlegroups.com.


[go-nuts] asmcgocall and async preemption

2020-03-29 Thread Laevus Dexter
Go 1.14 has introduced new async preemption stuff. 
I'm wondering what would happen if you were inside C code and preemption 
signal has arrived? How can I reproduce this case to test stuff like this: 
https://github.com/LaevusDexter/asmcgocall ?

-- 
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/371d9906-a509-48c2-a823-9e7d85170f94%40googlegroups.com.