- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for example (0.17 sec)
-
doc/go_mem.html
and it must not allow a single write to write multiple values. </p> <p> All the following examples assume that `*p` and `*q` refer to memory locations accessible to multiple goroutines. </p> <p> Not introducing data races into race-free programs means not moving writes out of conditional statements in which they appear. For example, a compiler must not invert the conditional in this program: </p> <pre> *p = 1
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) -
doc/go1.17_spec.html
For instance, this example: </p> <pre> goto L // BAD v := 3 L: </pre> <p> is erroneous because the jump to label <code>L</code> skips the creation of <code>v</code>. </p> <p> A "goto" statement outside a <a href="#Blocks">block</a> cannot jump to a label inside that block. For instance, this example: </p> <pre> if n%2 == 1 {
HTML - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Thu Apr 11 20:22:45 GMT 2024 - 211.6K bytes - Viewed (0) -
doc/asm.html
<p> Constants are of the form <code>const_<i>name</i></code>. For example, given the Go declaration <code>const bufSize = 1024</code>, assembly code can refer to the value of this constant as <code>const_bufSize</code>. </p> <p> Field offsets are of the form <code><i>type</i>_<i>field</i></code>. Struct sizes are of the form <code><i>type</i>__size</code>. For example, consider the following Go definition: </p> <pre>
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) -
doc/go_spec.html
For instance, this example: </p> <pre> goto L // BAD v := 3 L: </pre> <p> is erroneous because the jump to label <code>L</code> skips the creation of <code>v</code>. </p> <p> A "goto" statement outside a <a href="#Blocks">block</a> cannot jump to a label inside that block. For instance, this example: </p> <pre> if n%2 == 1 {
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)