Christoffer Lerno

Results 1219 comments of Christoffer Lerno

A type parameter in a generic module basically just becomes a type alias inside the scope of that module. So if you have `module foo();` then passing a `String` is...

I don't have this available, but depending on the way you want to be able to use this you could still do it straight up with codegen: 1. Place the...

Actually I agree that there is a missing piece here. Let me have a look at it.

You can try the new $expand macro to do it inline: ```c module test; import std; $expand(test()); struct Foo { int a; int b; } macro test() { var $out...

Make these changes ```c macro @type_view($ty) { $switch $case $ty == int.typeid: return "IntInput"; $case $ty == String.typeid: return "TextInput"; $default: $assert(false); $endswitch } struct IntInput { int a; }...

The macro to fold needs to always just evaluate to a single return statement, but yours folded to return "foo"; return "" which isn't allowed. It can probably be improved...

Yes, you can use $echo to give some more info before the $assert

Yes, the CI unfortunately only builds the aarch64 binaries, and worse – it's because it relies on Homebrew which will only give you no-fat LLVM libraries. That means there is...

Use --no-headers for now. The headers are still not really 100% sure to be correct I think.

Well, first of all you should be able to pass in arguments to wasm-ld using "-z ". Did you try this already?