Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for nil (0.14 sec)

  1. doc/go_mem.html

    	msg string
    }
    
    var g *T
    
    func setup() {
    	t := new(T)
    	t.msg = "hello, world"
    	g = t
    }
    
    func main() {
    	go setup()
    	for g == nil {
    	}
    	print(g.msg)
    }
    </pre>
    
    <p>
    Even if <code>main</code> observes <code>g != nil</code> and exits its loop,
    there is no guarantee that it will observe the initialized
    value for <code>g.msg</code>.
    </p>
    
    <p>
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 15:54:42 GMT 2024
    - 26.6K bytes
    - Viewed (0)
  2. doc/go1.22.html

          Previously, it would report a final empty token before stopping, which was usually not desired.
          Callers that do want to report a final empty token can do so by returning <code>[]byte{}</code> rather than <code>nil</code>.
        </p>
      </dd>
    </dl><!-- bufio -->
    
    HTML
    - Registered: Tue Feb 06 11:13:10 GMT 2024
    - Last Modified: Wed Jan 31 20:51:56 GMT 2024
    - 45.6K bytes
    - Viewed (0)
  3. doc/go1.17_spec.html

    <a href="#Predeclared_identifiers"><code>nil</code></a>;
    that case is selected when the expression in the TypeSwitchGuard
    is a <code>nil</code> interface value.
    There may be at most one <code>nil</code> case.
    </p>
    
    <p>
    Given an expression <code>x</code> of type <code>interface{}</code>,
    the following type switch:
    </p>
    
    <pre>
    switch i := x.(type) {
    case nil:
    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)
  4. doc/go_spec.html

    <a href="#Predeclared_identifiers"><code>nil</code></a>;
    that case is selected when the expression in the TypeSwitchGuard
    is a <code>nil</code> interface value.
    There may be at most one <code>nil</code> case.
    </p>
    
    <p>
    Given an expression <code>x</code> of type <code>interface{}</code>,
    the following type switch:
    </p>
    
    <pre>
    switch i := x.(type) {
    case nil:
    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)
  5. doc/asm.html

    // so actually
    // void atomicload64(uint64 *res, uint64 volatile *addr);
    TEXT runtime·atomicload64(SB), NOSPLIT, $0-12
    	MOVL	ptr+0(FP), AX
    	TESTL	$7, AX
    	JZ	2(PC)
    	MOVL	0, AX // crash with nil ptr deref
    	LEAL	ret_lo+4(FP), BX
    	// MOVQ (%EAX), %MM0
    	BYTE $0x0f; BYTE $0x6f; BYTE $0x00
    	// MOVQ %MM0, 0(%EBX)
    	BYTE $0x0f; BYTE $0x7f; BYTE $0x03
    	// EMMS
    	BYTE $0x0F; BYTE $0x77
    	RET
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Nov 28 19:15:27 GMT 2023
    - 36.3K bytes
    - Viewed (0)
Back to top