Changeset 425 in dev for trunk/abdev/BasicCompiler64
- Timestamp:
- Mar 10, 2008, 5:40:46 PM (17 years ago)
- Location:
- trunk/abdev/BasicCompiler64
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler64/Compile_Func.cpp
r370 r425 304 304 305 305 //オーバーロードを解決 306 pUserProc=OverloadSolution( name, subs, *pBaseParams, Type() );306 pUserProc=OverloadSolution( name, subs, *pBaseParams, Type(), Type() ); 307 307 308 308 if( isCallOn && baseType.IsDelegate() ) -
trunk/abdev/BasicCompiler64/Compile_Statement.cpp
r416 r425 781 781 782 782 //オーバーロードを解決 783 const UserProc *pUserProc = OverloadSolution( "==",subs, params, NULL);783 const UserProc *pUserProc = OverloadSolution( "==", subs, params, Type( DEF_BOOLEAN ), type1 ); 784 784 785 785 delete params[0]; -
trunk/abdev/BasicCompiler64/Compile_Var.cpp
r421 r425 453 453 int ptrLevel = PTR_LEVEL( resultType.GetBasicType() ); 454 454 455 // TODO: ベースオブジェクト(指定されていないときはObjectクラス)にセットする455 // 制約クラス(指定されていないときはObjectクラス)にセットする 456 456 resultType.SetBasicType( DEF_OBJECT ); 457 457 -
trunk/abdev/BasicCompiler64/Opcode.h
r416 r425 289 289 290 290 private: 291 bool EvaluateOverloadScore( int level, const Parameters &targetParms, const Type &targetResultType, bool &isErrored );292 293 public: 294 const UserProc *_OverloadSolution( const char *name, std::vector<const UserProc *> &subs, bool isEnabledReturnType = false );295 const UserProc *OverloadSolution( const char *name, std::vector<const UserProc *> &subs, bool isEnabledReturnType = false );291 bool EvaluateOverloadScore( int level, const Parameters &targetParms, const Type &targetResultType, const Type &leftType, const UserProc &userProc, bool &isErrored ); 292 293 public: 294 const UserProc *_OverloadSolution( const char *name, std::vector<const UserProc *> &subs, const Type &leftType, bool isEnabledReturnType ); 295 const UserProc *OverloadSolution( const char *name, std::vector<const UserProc *> &subs, const Type &leftType, bool isEnabledReturnType = false ); 296 296 297 297 void ApplyDefaultParameters( const Parameters ¶ms ); -
trunk/abdev/BasicCompiler64/OperatorProc.cpp
r402 r425 66 66 if(idCalc==CALC_EQUAL) lstrcpy(temporary,"=="); 67 67 else GetCalcName(idCalc,temporary); 68 const UserProc *pUserProc = OverloadSolution( temporary, subs, params, baseType );68 const UserProc *pUserProc = OverloadSolution( temporary, subs, params, baseType, leftType ); 69 69 70 70 if(!pUserProc){
Note:
See TracChangeset
for help on using the changeset viewer.