(12-23-2024, 01:15 AM)a740g Wrote:That's a really cool improvement, thanks guys!Quote:but it would be nice if the built-in _IIF command just worked with whatever type you passed in for parameters 2 & 3 (as long as parameters 2 & 3 aren't 2 different types)...It does.
Along those lines, I don't suppose it would be possible (or universally appreciated) to support operator overloading in functions? ie you can define a function x that receives certain parameter types, and define one or more additional functions also called x but receiving different parameters, where the compiler will know which definition to use based on the parameter types sent? In other words, it would allow someone to define a function that works with different parameter types like _iif does.