Elliott Stoneham

Results 169 comments of Elliott Stoneham

`reflect.Value.Bool()` is behaving correctly, see https://go.dev/play/p/E-wfS9F0Sve . So the issue must be with the calling code, if the tests have been written correctly.

From the Go language spec [on copy special handling](https://go.dev/ref/spec#Appending_and_copying_slices) > The function copy copies slice elements from a source src to a destination dst and returns the number of elements...

> TestSprintf, fmtTests number 506 > > ```go > Sprintf("%#v", {1 2 a [1 2]}) = "A{i:1, j:0x2, s:\"a\", x:[]int{1, 2}}" want "fmt_test.A{i:1, j:0x2, s:\"a\", x:[]int{1, 2}}" > ``` >...

> TestSprintf, fmtTests number 512: > > ```go > Sprintf("%#v", map[]) = "map[string]int{}" want "map[string]int{\"a\":1}" > ``` > > map string type not outputting key values. It is not outputting...

That's not the same issue as https://github.com/go2hx/go2hx/issues/153#issuecomment-1420278839 @PXshadow , which would be: ```go package main import ( "fmt" ) func main() { println(fmt.Sprintf("%#v", map[string]int{"a": 1})) } ```

Which is not to say that outputting a map containing a named type might not be a separate problem...

This is great news @PXshadow , well done! And the new "trench line" issue "only" looks like getting the correct "Go" name printed out, when it is from a local...

That would by my solution too @PXshadow .

My first reaction is that "Ref\" should be an enum with two states - "refNull\" or "refValue\". ... but there is probably more to it than that ... so I'll...

Example code to illustrate the idea is [here](https://try.haxe.org/#B1B4eA00) @PXshadow . ...still don't know if it goes some way to answering the question you were asking.