I would guess that the compiler, when parsing the type-declaration, first
allocates a FuncType
<https://github.com/golang/go/blob/731a015ab8c8f44c7196123fd65b184a63d6835a/src/cmd/compile/internal/syntax/nodes.go#L289>
struct
and then stores a pointer to that allocated struct inside its `ResultList`,
when it resolves the identifier to the same type. i.e. akin to this code:
https://play.golang.org/p/N317XddkSN-
I think if you want to know more, you can start investigating from there -
grepping through the compiler source code for `FuncType` and see where it's
created and how it's populated.

On Tue, May 4, 2021 at 1:16 AM Delta Echo <deltaecho...@gmail.com> wrote:

> > Not sure what "handle" means in this case.
>
> I want to know how this is implemented.
>
> --
> 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/CAK-mku7fihRNP-Zd2hUwS1zVAHXfOjvPhS-FOxDXAFkjP%3DMaFQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/golang-nuts/CAK-mku7fihRNP-Zd2hUwS1zVAHXfOjvPhS-FOxDXAFkjP%3DMaFQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAEkBMfGazsSYq0P27AWHBuno7sPz5_-m%2Bx-0nLFzrFQ8WEAQvg%40mail.gmail.com.

Reply via email to