Devros
Devros
Interesting workaround is to wrap the functions in a structure and pass that into the anon function 🫢. ```v module main struct Fun{ t1 fn() t2 fn() } fn test()...
Go 'int's are 8 bytes in size. Need to use i64 for V https://stackoverflow.com/questions/51852678/int-vs-int32-return-value ```go import ( "fmt" "runtime" "unsafe" ) func main() { fmt.Println("arch", runtime.GOARCH) fmt.Println("int", unsafe.Sizeof(int(0))) fmt.Println("int32", unsafe.Sizeof(int32(0)))...
Using function types seems to mitigate the function parameter types error 😕 ```v type Fnp = fn (&int, &int) int // pub fn indirect(array []int, callback fn (&int, &int) int)...
No problem on M1 Mac ``` OS: macos, macOS, 13.2, 22D49 Processor: 8 cpus, 64bit, little endian, Apple M1 CC version: Apple clang version 14.0.0 (clang-1400.0.29.202) V full version: V...
> Your reproduction step has not the same content as the error Sorry, I skimmed the code and missed the intent of the post.