Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for 1s (0.14 sec)

  1. doc/go1.17_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 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

    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 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