Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for spre (0.12 sec)

  1. doc/go1.17_spec.html

    <pre>
    func(int) int
    </pre>
    
    <p>
    These two invocations are equivalent:
    </p>
    
    <pre>
    t.Mv(7)
    f := t.Mv; f(7)
    </pre>
    
    <p>
    Similarly, the expression
    </p>
    
    <pre>
    pt.Mp
    </pre>
    
    <p>
    yields a function value of type
    </p>
    
    <pre>
    func(float32) float32
    </pre>
    
    <p>
    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)
  2. src/cmd/cgo/internal/test/callback.go

    	nestedCall(func() { x = true })
    	if !x {
    		t.Fatal("nestedCall did not call func")
    	}
    }
    
    func testCallbackGC(t *testing.T) {
    	nestedCall(runtime.GC)
    }
    
    func testCallbackPanic(t *testing.T) {
    	// Make sure panic during callback unwinds properly.
    	if lockedOSThread() {
    		t.Fatal("locked OS thread on entry to TestCallbackPanic")
    	}
    	defer func() {
    		s := recover()
    		if s == nil {
    			t.Fatal("did not panic")
    		}
    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)
Back to top