Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for true (0.12 sec)

  1. doc/go_mem.html

    For example, the <code>twoprint</code> program might be
    incorrectly written as:
    </p>
    
    <pre>
    var a string
    var done bool
    
    func setup() {
    	a = "hello, world"
    	done = true
    }
    
    func doprint() {
    	if !done {
    		once.Do(setup)
    	}
    	print(a)
    }
    
    func twoprint() {
    	go doprint()
    	go doprint()
    }
    </pre>
    
    <p>
    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/asm.html

    are still treated specially;
    for instance, references to <code>SP</code> require a symbol,
    much like <code>FP</code>.
    To access the actual hardware register use the true <code>R</code> name.
    For example, on the ARM architecture the hardware
    <code>SP</code> and <code>PC</code> are accessible as
    <code>R13</code> and <code>R15</code>.
    </p>
    
    <p>
    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)
Back to top