Re: [go-nuts] How could the body for a func be "provided by runtime"?

2017-02-09 Thread Ilya Kostarev
It's documented. From lang spec https://golang.org/ref/spec#Function_declarations "A function declaration may omit the body. Such a declaration provides the signature for a function implemented outside Go, such as an assembly routine." On Thu, 9 Feb 2017 04:15:00 -0800

[go-nuts] How could the body for a func be "provided by runtime"?

2017-02-09 Thread Sina Siadat
Hi! In $GOROOT/src/sync/mutex.go:19 there is a function declaration like this: func throw(string) // provided by runtime The function body is missing. I was wondering what is meant by "provided by runtime" and how it is done. I am guessing this is the same as the throw func defined in