[quote=112596:@Mars Saxman]This is a simple example, but let’s take it just one tiny step further:
Dim val As Variant = GoGetMyVariant()
Foo(Bar() + val)[/quote]
Looking for this one, disambiguation operator need seems is the way to go for dubious cases.
Foo(Bar() + val) // Error! Needs explicitation of types
Foo(Bar() + Integer(val)) // Decide for the Integer options
Foo(Bar() + String(val)) // Strings for sure
I don’t claim that this is the only solution or that it is the best solution, and it is of course up to the developers in charge of Xojo today to take it into the future however they see fit, but this was the thinking I had when I built the algorithm we have today. I hope it is informative!
I don’t claim that the current behavior is not good, you did a terrific job. And for the current state of the tool adding this contextual complexity doesn’t seem a good decision, by now; but for the future it can be really interesting.