Delyan Angelov
Delyan Angelov
Why does the second example print `without name` 2 times?
it generated wrongly :-| : ```c if (other.state != 0) { IError err = other.err; println(_SLIT("without name")); *(string*) other.data = _SLIT("default"); } string val = /*opt*/(*(string*)other.data); if (other.state != 0)...
Something like this can test it: ```v struct Foo { name ?string } fn test_or_block_should_be_evaluated_just_once() { foo := Foo{} other := foo.name mut counter := 0 val := other or...
> #flag darwin -lc++ -Wl,-rpath,"@executable_path/../../../thirdparty/binaryen/lib" --Wl,-rpath,/opt/homebrew/lib do not pass the ci test ? It did not, see https://github.com/vlang/v/actions/runs/4305124588/jobs/7507121218 for 871c557 . I'll try again later locally, for now I am...
> Any thoughts on finishing this one? Yes, I am working on it.
I agree 💯 with the proposed change. What worries me is the `This feature might incur a breaking change` . Do you have a plan for how to not break...
Looks good to me.
> cjson should only be used inside json2. The whole point of json2, is that it is pure V code, and does not depend on a C library.
// why we have 2 types of pointers? I think the answer for this (byteptr and voidptr) is easy interoperability with existing C code.
The language already implements so called fixed arrays, for example `a := [5]int` will get a allocated on the stack, and it will not be able to grow dynamically. Currently,...