operator-overloading

Operator Overloading in Excel VBA

徘徊边缘 提交于 2021-01-02 06:37:55
问题 What I would like to do: I would like to use operator overloading in Excel to run custom functions on my custom data types. For example, when evaluating a formula, I want Excel to run my function instead of the '+' operator when the calculation involves one of my custom data types. Why I want to do it: In analytical chemistry, every number has an uncertainty attached to it and is written: 13.56 (±0.02) mm I would like to create a custom data type that keeps the magnitude and the uncertainty

Operator Overloading in Excel VBA

余生长醉 提交于 2021-01-02 06:37:30
问题 What I would like to do: I would like to use operator overloading in Excel to run custom functions on my custom data types. For example, when evaluating a formula, I want Excel to run my function instead of the '+' operator when the calculation involves one of my custom data types. Why I want to do it: In analytical chemistry, every number has an uncertainty attached to it and is written: 13.56 (±0.02) mm I would like to create a custom data type that keeps the magnitude and the uncertainty

Operator Overloading in Excel VBA

╄→尐↘猪︶ㄣ 提交于 2021-01-02 06:36:01
问题 What I would like to do: I would like to use operator overloading in Excel to run custom functions on my custom data types. For example, when evaluating a formula, I want Excel to run my function instead of the '+' operator when the calculation involves one of my custom data types. Why I want to do it: In analytical chemistry, every number has an uncertainty attached to it and is written: 13.56 (±0.02) mm I would like to create a custom data type that keeps the magnitude and the uncertainty