Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Turing (0.14 sec)

  1. doc/go_mem.html

    implies observing the write to <code>a</code>.  This
    version can (incorrectly) print an empty string
    instead of <code>"hello, world"</code>.
    </p>
    
    <p>
    Another incorrect idiom is busy waiting for a value, as in:
    </p>
    
    <pre>
    var a string
    var done bool
    
    func setup() {
    	a = "hello, world"
    	done = true
    }
    
    func main() {
    	go setup()
    	for !done {
    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)
Back to top