发明名称 Resolving operators with user defined operands
摘要 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.
申请公布号 US7620944(B2) 申请公布日期 2009.11.17
申请号 US20030699327 申请日期 2003.10.31
申请人 MICROSOFT CORPORATION 发明人 BECCARIO CAMERON;VICK PAUL;KANTAMNENI HARISH VENKATA;SILVER AMANDA;HAMBY JOHN
分类号 G06F9/45 主分类号 G06F9/45
代理机构 代理人
主权项
地址
您可能感兴趣的专利