diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-02-18 17:41:55 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-02-18 17:41:55 -0500 |
| commit | 8922008dec5d631da0305527f670fb34852dfee7 (patch) | |
| tree | 01d5af0a8d4205e36ecad13d7c18273f3b87991a | |
| parent | 28bf768883d2411d4cd75582d396d465ab6a54b2 (diff) | |
| download | zig-8922008dec5d631da0305527f670fb34852dfee7.tar.gz zig-8922008dec5d631da0305527f670fb34852dfee7.zip | |
docs: note top level declarations are order-independent
closes #1244
| -rw-r--r-- | doc/langref.html.in | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/doc/langref.html.in b/doc/langref.html.in index ac3864adda..03afa1cf09 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -243,8 +243,9 @@ const Timestamp = struct { {#header_close#} {#header_open|Values#} {#code_begin|exe|values#} -const std = @import("std"); +// Top-level declarations are order-independent: const warn = std.debug.warn; +const std = @import("std"); const os = std.os; const assert = std.debug.assert; @@ -6745,11 +6746,7 @@ pub fn build(b: *Builder) void { {#header_open|Single Threaded Builds#} <p>Zig has a compile option <code>--single-threaded</code> which has the following effects: <ul> - <li>{#link|@atomicLoad#} is emitted as a normal load.</li> - <li>{#link|@atomicRmw#} is emitted as a normal memory load, modify, store.</li> - <li>{#link|@fence#} becomes a no-op.</li> - <li>Variables which have Thread Local Storage instead become globals. TODO thread local variables - are not implemented yet.</li> + <li>Variables which have Thread Local Storage instead become globals.</li> <li>The overhead of {#link|Coroutines#} becomes equivalent to function call overhead. TODO: please note this will not be implemented until the upcoming Coroutine Rewrite</li> <li>The {#syntax#}@import("builtin").single_threaded{#endsyntax#} becomes {#syntax#}true{#endsyntax#} |
