Problem with built-in function 'func'
Posted: 26 Mar 2018, 13:08
Func() was opitimised in v2.0-a090-ae96c4a, maybe it caused the following unexpected result
defining a function f, and replacing abs with f does not change the behaviour.
Cheers.
(simple benchmarking shows positive results for the optimisation )
Code: Select all
; v2.0-a090-ae96c4a
msgbox isobject(func(true ? "abs" : "")) ; 0 this is unexpected
; The following is expected
msgbox isobject(func(false ? "" : "abs")) ; 1
a := true ? "abs" : ""
msgbox isobject(func(a)) ; 1
msgbox isobject(func(true && "abs")) ; 1
Cheers.
(simple benchmarking shows positive results for the optimisation )