I think you misunderstood the question or it wasn’t clear. The struct can only contain a single int64 - so you cannot add another value to hold the number of decimal places. The idea is to track the number of decimal places via the type (or method on the type) so the compiler knows it while generating the code. It’s clear in the C++ code. On Oct 15, 2024, at 9:17 PM, Cleberson Pedreira Pauluci <pauluci.cleber...@gmail.com> wrote: -- 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/BC05C1B0-2D38-4FD9-B0E7-45B9A196B923%40ix.netcom.com. |
- [go-nuts] Generic constant type parameters... 'Robert Engels' via golang-nuts
- [go-nuts] Re: Generic constant type p... Cleberson Pedreira Pauluci
- Re: [go-nuts] Re: Generic constan... Robert Engels
- Re: [go-nuts] Re: Generic con... Cleberson Pedreira Pauluci
- Re: [go-nuts] Re: Generic... Robert Engels
- Re: [go-nuts] Re: Ge... Robert Engels
- Re: [go-nuts] Generic constant type p... Ian Lance Taylor
- Re: [go-nuts] Generic constant ty... 'Robert Engels' via golang-nuts
- Re: [go-nuts] Generic constan... Marvin Renich
- Re: [go-nuts] Generic con... Robert Engels
- Re: [go-nuts] Generi... Marvin Renich
- Re: [go-nuts] Generic constan... Ian Lance Taylor
- Re: [go-nuts] Generic con... 'robert engels' via golang-nuts