Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for rules (0.2 sec)

  1. doc/go_mem.html

    <code>"hello, world"</code>.  (It might print the empty string,
    crash, or do something else.)
    </p>
    
    <p class="rule">
    The <i>k</i>th receive on a channel with capacity <i>C</i> is synchronized before the completion of the <i>k</i>+<i>C</i>th send from that channel completes.
    </p>
    
    <p>
    This rule generalizes the previous rule to buffered channels.
    It allows a counting semaphore to be modeled by a buffered channel:
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Mon Mar 04 15:54:42 GMT 2024
    - 26.6K bytes
    - Viewed (0)
  2. doc/go1.17_spec.html

    is also allowed and follows from the general rules above.
    </p>
    
    <pre>
    const c = 3 &lt; 4            // c is the untyped boolean constant true
    
    type MyBool bool
    var x, y int
    var (
    	// The result of a comparison is an untyped boolean.
    	// The usual assignment rules apply.
    	b3        = x == y // b3 has type bool
    	b4 bool   = x == y // b4 has type bool
    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)
  3. doc/asm.html

    types and instead use these constants.
    This improves the readability of assembly code, and keeps it robust to
    changes in data layout either in the Go type definitions or in the
    layout rules used by the Go compiler.
    </p>
    
    <p>
    Constants are of the form <code>const_<i>name</i></code>.
    For example, given the Go declaration <code>const bufSize =
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Tue Nov 28 19:15:27 GMT 2023
    - 36.3K bytes
    - Viewed (0)
  4. doc/go_spec.html

    <li>
    A "for" statement with <a href="#For_range">"range" clause</a> may iterate over
    integer values from zero to an upper limit.
    </li>
    </ul>
    
    <h3 id="Type_unification_rules">Type unification rules</h3>
    
    <p>
    The type unification rules describe if and how two types unify.
    The precise details are relevant for Go implementations,
    affect the specifics of error messages (such as whether
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu May 02 22:43:51 GMT 2024
    - 279.6K bytes
    - Viewed (0)
Back to top