Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for 1s (0.12 sec)

  1. doc/go_spec.html

    Four * 100   // product 400 cannot be represented as an int8 (type of Four)
    </pre>
    
    <p>
    The mask used by the unary bitwise complement operator <code>^</code> matches
    the rule for non-constants: the mask is all 1s for unsigned constants
    and -1 for signed and untyped constants.
    </p>
    
    <pre>
    ^1         // untyped integer constant, equal to -2
    uint8(^1)  // illegal: same as uint8(-2), -2 cannot be represented as a uint8
    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