JalonSolov

Results 435 comments of JalonSolov

Why would you expect that to work? First, the error message is correct - `str` doesn't exist in both structs. 2nd, you can't initialize with `println` because `println` doesn't return...

Someone please explain to me why this line makes _any_ sense? ```v StmtSt2 { println(st.stmt.str) } ``` Since `println` doesn't return anything, so how could it be used to initialize...

> > Since println doesn't return anything, so how could it be used to initialize a StmtSt2 struct? > > Mh, I think it is not creating the `StmtSt2` but...

`v_sprintf` is really only for internal use. It doesn't act as you expect C's sprintf to work. You're better off using string interpolation if you want the spaces, or just...

https://stackoverflow.com/questions/71945395/builder-error-openssl-rand-h-not-found-windows-10

> 2. Install Winlibs https://winlibs.com/ Should be 2. Install gcc from https://winlibs.com

V should give a better error message here, but the problem is in your code. You're passing a slice (which is basically an array) to a method that only takes...

Shouldn't ```v fn unwrap_function() !int { return unwrap_int() or {error("we are issing the return?")} } ``` be this, instead? ```v fn unwrap_function() !int { return unwrap_int() or {none} } ```

Well... `?int` is optional return, meaning valid value or error. `!int` means result return, meaning value value or `none`. You have `!int` as the return type.

Sorry - had it backwards. Too much confusion with which punctuation to use when... :-\