Stevie Hryciw

Results 37 comments of Stevie Hryciw

> The current answer to this is the isPrimitive() function in src/AstGen.zig in the self hosted compiler. I see that translate-c already imports this function from AstGen for it's own...

CI error after formatting All The Code: ``` [ 98%] Built target zig1 [ 99%] Building stage2 object /Users/runner/work/1/s/build/zig2.o ./src/Zir.zig:2370:36: error: expected token ')', found '.' .ty = Type.initTag(.undefined), ^...

Ok, we had a chat and made some design conclusions and have a clear path to simplify/finish this PR. Spec changes: - The Zig language should not depend on the...

_(Edited out irrelevant updates)_ The render logic should be up to snuff now, just awaiting CI results. Previously, translate-c was was [creating string/character literal AST nodes with identifier tokens](https://github.com/ziglang/zig/blob/e64eef3/src/translate_c/ast.zig#L1139-L1154), a...

@ifreund This is now up to spec and ready for review! Here are some notes to keep in mind: - I left the commit history a mess until you are...

After changing `lib.ofmt = .c` to `lib.target.ofmt = .c` and running `zig build` with the latest nightly, I don't get the error anymore. But zig.h is still not getting copied...

> I assume this means the scope of a block of code within braces Not quite. A _container_ is something that can contain _members_ (fields, variants) and _declarations_ (consts/vars/functions). It's...

I've recently wanted this feature when dealing with a collection of fairly long non-exhaustive enums. Here is an example: https://github.com/hryx/llvm-bitcode/blob/6b60fd4/src/Bitcode.zig#L352-L432 In this case, I need to switch on a subset...

(Please ignore my original comment. My use case is unchanged and I temporarily conflated two components.) Is there a story in this proposal for JIT compilation? I have a Zig...

Note: possible interaction with the accepted proposal at https://github.com/ziglang/zig/issues/114#issuecomment-302235077 in which associativity is a factor (and which was written before `orelse` existed).