Resolving operators with user defined operands
AssigneeMicrosoft Corporation
InventorsCameron Beccario, Paul Vick, Harish Kantamneni, Amanda Silver, John Hamby
Life of this patent
Estimating the term…
Loading patent…
AssigneeMicrosoft Corporation
InventorsCameron Beccario, Paul Vick, Harish Kantamneni, Amanda Silver, John Hamby
Estimating the term…
Techniques are disclosed to support the resolution of an operator which has been called with inconsistent typing and at least one operand of a user-defined type. In order to allow the compilation of such an operation, first all possible widening conversions for each operand are examined to determine if any widening conversions of any operands would result in types over which the operator is defined. If not, both the narrowing and the widening conversions of each operand are considered, to determine if any conversions of either or both operands would result in types for which the operator is defined. If only widening conversions are used, the most encompassed possible result type is selected as the target type. If a narrowing conversion is used, the most encompassing possible result type is selected as the target type. In order to use the target type, each operand is converted to the target type. The operation is then performed using the converted operands.
A method of resolving a target expression comprising an operator and at least one operand, comprising the steps of:
A method of resolving an expression comprising an overloaded binary operator, a first operand of a first type and a second operand of a second type, comprising the steps of:
A computer-readable medium containing computer executable instructions to resolve a target expression comprising an operator and at least one operand, the computer-executable instructions to perform acts comprising:
A computer-readable medium containing computer executable instructions to resolve an expression comprising an overloaded binary operator, a first operand of a first type and a second operand of a second type, the computer-executable instructions to perform acts comprising:
An operator resolution system for resolving a target expression comprising an operator and at least one operand, comprising:
A operator resolution system of resolving an expression comprising an overloaded binary operator, a first operand of a first type and a second operand of a second type, comprising:
Dependencies are inferred from the claim text.