Andrew Kelley
3ee1b60edf
langref: add docs for peer type resolution
...
closes #1367
2018-08-20 14:22:16 -04:00
Marc Tiehuis
1da93caced
docs: correct @memcpy, @memset function signatures
2018-08-18 12:06:25 +12:00
Andrew Kelley
c4b9466da7
Merge pull request #1294 from ziglang/async-fs
...
introduce std.event.fs for async file system functions
2018-08-10 15:51:17 -04:00
Andrew Kelley
d40f3fac74
docgen: fix usage of std.HashMap
2018-08-10 00:03:16 -04:00
Shawn Landden
cb0ef3ad4c
doc: @addWithOverflow also returns if overflow occured
2018-08-06 22:12:14 -07:00
kristopher tate
ac0a87d58d
doc/langref.html.in: add builtin @handle() to docs;
...
Tracking Issue #1296 ;
2018-08-02 17:47:39 +09:00
kristopher tate
915e321a23
doc/langref.html.in: update suspend example with @handle();
...
Tracking Issue #1296 ;
2018-08-02 17:45:35 +09:00
kristopher tate
ff4a03f351
doc/langref.html.in: update docs to reflect that the promise symbol is no in scope with suspend;
...
Tracking Issue #1296 ;
2018-08-02 17:03:39 +09:00
Matthew D. Steele
0db33e9c86
Add "Comments" section to language reference ( #1309 )
...
The contents of this section come from the discussion on issue #1305 .
2018-07-30 22:27:07 -04:00
Andrew Kelley
cfe03c764d
fix docs for break from suspend
2018-07-30 13:07:04 -04:00
Andrew Kelley
02c5bda704
remove ability to break from suspend blocks
...
closes #803
2018-07-27 17:27:03 -04:00
Jay Weisskopf
6394f7e9a3
Fixed minor documentation errors ( #1256 )
...
Changed:
- "retuns" to "returns"
- "null-terminated pointers" to "pointers to null-terminated arrays"
2018-07-17 21:18:41 -04:00
Andrew Kelley
e9a03cccf3
all integer sizes are available as primitives
...
* fix wrong implicit cast for `@IntType` bit_count parameter.
* fix incorrect docs for `@IntType` bit_count parameter.
closes #1242
closes #745
closes #1240
2018-07-16 10:53:15 -04:00
Andrew Kelley
29c756abba
docs: correct some misinformation
2018-07-14 11:53:51 -04:00
Andrew Kelley
696ef0bc03
langref: docs for union safety
2018-07-10 10:37:58 -04:00
Andrew Kelley
05f1ea33d2
ZIG_DEBUG_COLOR=1 overrides tty detection for runtime stack traces
2018-07-09 12:12:37 -04:00
Andrew Kelley
2ee67b7642
langref: docs for invalid error set cast and incorrect pointer alignment
...
also add detection of incorrect pointer alignment at compile-time
of pointers that were constructed with `@intToPtr`.
2018-07-09 11:13:29 -04:00
Andrew Kelley
d8295c1889
add @popCount intrinsic
2018-07-07 00:25:32 -04:00
Andrew Kelley
e19f0b5d9c
remove outdated semantic analysis documentation
2018-07-06 18:24:09 -04:00
Andrew Kelley
6d793c0ea3
langref: add more internal links
2018-07-06 16:20:31 -04:00
Andrew Kelley
27fc49f72c
langref: improve docs for while and undefined
...
closes #1190
2018-07-03 14:03:27 -04:00
Andrew Kelley
35463526cc
add runtime safety for @intToEnum
; add docs for runtime safety
...
See #367
2018-07-02 15:50:28 -04:00
Josh Wolfe
0206b76351
syntax in build.zig example doc
2018-07-01 22:03:51 -04:00
Andrew Kelley
6f88ecc9b6
add f16 to langref
2018-06-27 12:59:12 -04:00
Andrew Kelley
4de60dde6e
langref: explicit cast section
2018-06-26 15:48:42 -04:00
Andrew Kelley
5f38d6e2e9
add casting docs, __extenddftf2, and __extendsftf2
2018-06-21 14:44:35 -04:00
Andrew Kelley
ee525c92a4
langref: organize docs for inline loops and add note about when to use it
2018-06-19 17:21:08 -04:00
Andrew Kelley
c7804277bf
@floatToInt
now has safety-checked undefined behavior
...
when the integer part does not fit in the destination integer type
* Also fix incorrect safety triggered for integer casting an
`i32` to a `u7`. closes #1138
* adds compiler-rt function: `__floatuntidf`
2018-06-19 16:06:10 -04:00
Andrew Kelley
0b92d689d0
update langref
2018-06-19 12:16:59 -04:00
Andrew Kelley
85422d7aea
Merge pull request #1136 from alexnask/typeinfo_improvements
...
@typeInfo now uses optional types instead of @typeOf(undefined)
2018-06-19 11:46:32 -04:00
Alexandros Naskos
811539f8ee
Added missing ?type in docs.
2018-06-19 17:49:48 +03:00
Alexandros Naskos
1392313236
@typeInfo now uses optional types instead of @typeOf(undefined)
2018-06-19 17:45:19 +03:00
Andrew Kelley
a3ddd0826b
remove enum to/from int casting syntax; add @enumToInt
/@intToEnum
...
see #1061
2018-06-19 03:50:38 -04:00
Andrew Kelley
626b73e8be
remove error to/from int casting syntax; add @errorToInt
/@intToError
...
See #1061
2018-06-18 18:48:29 -04:00
Andrew Kelley
1aafbae5be
remove []u8 casting syntax. add @bytesToSlice
and @sliceToBytes
...
See #1061
2018-06-18 17:25:29 -04:00
Andrew Kelley
5d705fc6e3
remove error set casting syntax. add @errSetCast
...
See #1061
2018-06-18 15:01:42 -04:00
Andrew Kelley
48985a7e68
langref: add docs for void
...
see #367
2018-06-18 12:02:30 -04:00
Andrew Kelley
4210f1f6a0
remove bool to int syntax. add @boolToInt
...
add missing docs
See #1061
2018-06-18 03:07:16 -04:00
Andrew Kelley
7912061226
remove integer and float casting syntax
...
* add `@intCast`
* add `@floatCast`
* add `@floatToInt`
* add `@intToFloat`
See #1061
2018-06-17 02:57:07 -04:00
Andrew Kelley
751518787a
Merge pull request #1109 from ziglang/pass-by-non-copying-value
...
allow passing by non-copying value
2018-06-16 21:13:10 -04:00
Andrew Kelley
eae9634ac9
langref: be clear that float types are always IEEE 754
2018-06-16 19:53:52 -04:00
Andrew Kelley
59b3dc8907
allow passing by non-copying value
...
closes #733
2018-06-16 19:36:33 -04:00
Andrew Kelley
f0697c28f8
langref: docs for error return traces
...
See #367
2018-06-14 18:12:31 -04:00
Andrew Kelley
41e6c664d8
langref: add merge error sets operator to operator table
2018-06-13 11:09:41 -04:00
Andrew Kelley
86adc1ef39
add docs and missing test case for merging error sets
...
See #367
2018-06-12 19:38:59 -04:00
Andrew Kelley
13d3255e2a
docgen: don't leave garbage .h files lying around
...
closes #1100
2018-06-12 15:21:14 -04:00
Andrew Kelley
3dd9af9948
implement std.os.Dir for windows
...
improve std.os.File.access so that it does not depend on shlwapi.dll
closes #1084
2018-06-12 01:57:09 -04:00
Andrew Kelley
0a18d53c3d
langref: add orelse keyword to syntax highlighting
2018-06-11 17:38:24 -04:00
Andrew Kelley
5252566137
langref: add coroutines documentation
...
See #367
2018-06-11 17:34:45 -04:00
Andrew Kelley
77678b2cbc
breaking syntax change: orelse keyword instead of ?? ( #1096 )
...
use the `zig-fmt-optional-default` branch to have zig fmt
automatically do the changes.
closes #1023
2018-06-10 01:13:51 -04:00