Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for later (0.02 seconds)

  1. doc/go_spec.html

    The expression <code>x</code> is evaluated and saved during the evaluation of the
    method value; the saved copy is then used as the receiver in any calls,
    which may be executed later.
    </p>
    
    <pre>
    type S struct { *T }
    type T int
    func (t T) M() { print(t) }
    
    t := new(T)
    s := S{T: t}
    f := t.M                    // receiver *t is evaluated and stored in f
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Tue Dec 02 23:07:19 GMT 2025
    - 286.5K bytes
    - Click Count (1)
Back to Top