Undumendil

Results issues of Undumendil

Input: ``` fn main() { a := [0] println(a) } ``` Expected output: `[0]` Output: `You just found a bug. V can't compile this program, but it should. Please create...

Bug

Input: ``` fn test(ok int) { println(ok) } fn main() { test(3) } ``` Expected output: `3` Output: `You just found a bug. V can't compile this program, but it...

Bug

Input: ``` fn main() { mut m := map[string]int{} m['1'] = 1 println(m[1.str()]) } ``` Expected output: `1` Output: ``` expected `]` but got `str` ```

Bug

Input: ``` fn main(){ a := rune('1') println(a) } ``` Expected output: `1` Output: ``` `rune` needs to have method `str() string` to be printable ```

Unit: Compiler

Input: ``` fn main() { a := voidptr('AAAAAAAA'.str) b := ptr_str(a) println(b) } ``` Output: ``` Fn "ptr_str" wrong arg #1. Expected "void*" (ptr) but got "voidptr" ``` Any function...

Bug

It should be the first step of implementing a package manager later.

Feature/Enhancement Request
Unit: VPM

https://github.com/vlang/v/blob/master/builtin/builtin.v#L78 https://github.com/vlang/v/blob/master/builtin/builtin.v#L87 https://github.com/vlang/v/blob/master/builtin/array.v#L167 Panics/segfaults/leaks because of temporary memory issues should be avoided; at least in builtin modules. Keeping some pre-allocated memory may solve most of such cases.

Type: Clean-Up
Unit: vlib

Feature/Enhancement Request