Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for pt (0.16 sec)

  1. doc/go1.17_spec.html

    using an addressable value will automatically take the address of that value: <code>t.Mp</code> is equivalent to <code>(&amp;t).Mp</code>.
    </p>
    
    <pre>
    f := t.Mv; f(7)   // like t.Mv(7)
    f := pt.Mp; f(7)  // like pt.Mp(7)
    f := pt.Mv; f(7)  // like (*pt).Mv(7)
    f := t.Mp; f(7)   // like (&amp;t).Mp(7)
    f := makeT().Mp   // invalid: result of makeT() is not addressable
    </pre>
    
    <p>
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  2. doc/go_spec.html

    using an addressable value will automatically take the address of that value: <code>t.Mp</code> is equivalent to <code>(&amp;t).Mp</code>.
    </p>
    
    <pre>
    f := t.Mv; f(7)   // like t.Mv(7)
    f := pt.Mp; f(7)  // like pt.Mp(7)
    f := pt.Mv; f(7)  // like (*pt).Mv(7)
    f := t.Mp; f(7)   // like (&amp;t).Mp(7)
    f := makeT().Mp   // invalid: result of makeT() is not addressable
    </pre>
    
    <p>
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 00:39:16 GMT 2024
    - 279.6K bytes
    - Viewed (0)
Back to top