ui icon indicating copy to clipboard operation
ui copied to clipboard

Window objects aren't printable

Open ChildishGiant opened this issue 4 years ago • 1 comments

V version: **UI version:**0.0.4 OS: windows, Microsoft Windows 10 Pro v19042 64-bit

What did you do?

import ui

fn main() {
    window := ui.window({}, [])
    print(window)
}

What did you expect to see? Some form of printed view of the window object

What did you see instead? cgen error: could not generate string method HWND_str for type 'HWND'

ChildishGiant avatar Apr 23 '21 16:04 ChildishGiant

It is true that print() and println() cause the program to be unresponsive. I think v.ui needs the correct log output function.

tzSharing avatar Sep 17 '21 08:09 tzSharing