On Sun, Jan 7, 2018 at 11:57 AM T L <tapir....@gmail.com> wrote:

Yes. The choice is to raise a runtime error or not. When not, the value
does not really matter because every value of an integer variable
represents an integer number and there is no combination of the bits left
unused for NaN, Inf, etc. FTR, the value is what the CPU produces. The CPU
sets flags on the conversion but those are not available directly to the
program. The comma-ok idiom could be useful in such cases, though.

Non-representable floating point values have to be checked before the
conversion where appropriate.



-- 

-j

-- 
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.

Reply via email to