- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for function (0.21 sec)
-
doc/go1.17_spec.html
when the function is invoked, not when the "defer" statement is executed. </p> <p> For instance, if the deferred function is a <a href="#Function_literals">function literal</a> and the surrounding function has <a href="#Function_types">named result parameters</a> that are in scope within the literal, the deferred function may access and modify the result parameters before they are returned.
HTML - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Thu Apr 11 20:22:45 GMT 2024 - 211.6K bytes - Viewed (0) -
src/cmd/cgo/internal/test/callback.go
func nestedCall(f func()) { // callback(x) calls goCallback(x) callbackMutex.Lock() callbackToken++ i := callbackToken callbackFuncs[i] = f callbackMutex.Unlock() // Pass the address of i because the C function was written to // take a pointer. We could pass an int if we felt like // rewriting the C code. C.callback(unsafe.Pointer(&i)) callbackMutex.Lock() delete(callbackFuncs, i) callbackMutex.Unlock() }
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Fri May 12 12:00:02 GMT 2023 - 111.5K bytes - Viewed (0)