Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 33 of 33 for rewrites (0.29 sec)

  1. src/reflect/value.go

    			// temporarily for all the cases).
    			//
    			// If/when this happens, take note of the following:
    			//
    			// We must clear the destination before calling assignTo,
    			// in case assignTo writes (with memory barriers) to the
    			// target location used as scratch space. See issue 39541.
    			v = v.assignTo("reflect.MakeFunc", typ, nil)
    		stepsLoop:
    			for _, st := range abid.ret.stepsForValue(i) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  2. src/reflect/all_test.go

    //
    // Originally reflect.call did not distinguish inputs from outputs: both memmoves
    // were for the full stack frame. However, in the case where the called function was
    // one of these wrappers, the rewritten receiver is almost certainly a different type
    // than the original receiver. This is not a problem on the stack, where we use the
    // program counter to determine the type information and understand that
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  3. doc/go1.17_spec.html

    	printString("type is bool or string")  // type of i is type of x (interface{})
    default:
    	printString("don't know the type")     // type of i is type of x (interface{})
    }
    </pre>
    
    <p>
    could be rewritten:
    </p>
    
    <pre>
    v := x  // x is evaluated exactly once
    if v == nil {
    	i := v                                 // type of i is type of x (interface{})
    	printString("x is nil")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
Back to top