Delyan Angelov
Delyan Angelov
Харесва ми как звучи думата "шльокавициране" :-)
```v struct KB { bytes [1024]u8 } big := []KB{len: 5 * 1024 * 1024} // big should be now 5GB dump(u64(big.len) * u64(big.element_size)) ``` produces: ``` [s.v:6] u64(big.len) *...
> Also, `union` is a reserved name in `V` therefore, the method must be called something else. Right now I'm calling it `union_`. The existing convention is to use `fn...
It should not be the first choice/the default. The system provided cJSON library may be much older than what V expects. You can use `$if system_cjson ? {` to surround...
Try `ulimit -n 30000`, then in the same shell: `v -d net_blocking_sockets run redis_connect_error.v`
But it can not be casted automatically in the general case; consider for example `[]string`, or an `[]SomeType`: ```v b := []string{len:16, init: it} println(b) ``` What should be the...
> Correct me if I'm wrong, but isn't `it` supposed to be the index in the array, which should always be `int`? It has nothing to do with the elements....
This is not enough info to reproduce the problem. Please do post a *minimal*, but *complete* source code, so that it can be reproduced.
The problem is reproducible with `tcc` (the default), but is not with `-cc clang` or `-cc gcc`. I suspect that V generates C code that tcc is not yet smart...
> I have an accent in my name, maybe that's the problem, I don't know Yes. As a temporary workaround, try setting a `VMODULES` environment variable, to something like `c:\modules`...