diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-05-07 10:05:59 -0700 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-05-07 10:05:59 -0700 |
| commit | 8c79438f6b76f1ad4b4941cdb46ae1e7aa12ce14 (patch) | |
| tree | 266e5cc959092bfc6e0567916f37cd34fbd0f712 /std | |
| parent | d5d5fd928c79df6e4060c7ad84068fcee28c2391 (diff) | |
| download | zig-8c79438f6b76f1ad4b4941cdb46ae1e7aa12ce14.tar.gz zig-8c79438f6b76f1ad4b4941cdb46ae1e7aa12ce14.zip | |
better array concatenation semantics
closes #87
Diffstat (limited to 'std')
| -rw-r--r-- | std/str.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/std/str.zig b/std/str.zig index ca0c17898f..060921d199 100644 --- a/std/str.zig +++ b/std/str.zig @@ -1,5 +1,8 @@ const assert = @import("index.zig").assert; +// fix https://github.com/andrewrk/zig/issues/140 +// and then make this able to run at compile time +#static_eval_enable(false) pub fn len(ptr: &const u8) -> isize { var count: isize = 0; while (ptr[count] != 0; count += 1) {} |
