Changeset 424 in dev for trunk/abdev/BasicCompiler32
- Timestamp:
- Mar 10, 2008, 5:39:36 PM (17 years ago)
- Location:
- trunk/abdev/BasicCompiler32
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler32/Compile_Func.cpp
r370 r424 452 452 453 453 //オーバーロードを解決 454 pUserProc=OverloadSolution( name, subs, *pBaseParams, Type() );454 pUserProc=OverloadSolution( name, subs, *pBaseParams, Type(), Type() ); 455 455 456 456 if( isCallOn && baseType.IsDelegate() ) -
trunk/abdev/BasicCompiler32/Compile_Statement.cpp
r415 r424 1022 1022 1023 1023 //オーバーロードを解決 1024 const UserProc *pUserProc = OverloadSolution( "==",subs, params, NULL);1024 const UserProc *pUserProc = OverloadSolution( "==", subs, params, Type( DEF_BOOLEAN ), type1 ); 1025 1025 1026 1026 delete params[0]; -
trunk/abdev/BasicCompiler32/Compile_Var.cpp
r421 r424 428 428 int ptrLevel = PTR_LEVEL( resultType.GetBasicType() ); 429 429 430 // TODO: ベースオブジェクト(指定されていないときはObjectクラス)にセットする430 // 制約クラス(指定されていないときはObjectクラス)にセットする 431 431 resultType.SetBasicType( DEF_OBJECT ); 432 432 -
trunk/abdev/BasicCompiler32/Opcode.h
r415 r424 190 190 191 191 private: 192 bool EvaluateOverloadScore( int level, const Parameters &targetParms, const Type &targetResultType, bool &isErrored );192 bool EvaluateOverloadScore( int level, const Parameters &targetParms, const Type &targetResultType, const Type &leftType, const UserProc &userProc, bool &isErrored ); 193 193 public: 194 const UserProc *_OverloadSolution( const char *name, std::vector<const UserProc *> &subs, bool isEnabledReturnType = false );195 const UserProc *OverloadSolution( const char *name, std::vector<const UserProc *> &subs, bool isEnabledReturnType = false );194 const UserProc *_OverloadSolution( const char *name, std::vector<const UserProc *> &subs, const Type &leftType, bool isEnabledReturnType ); 195 const UserProc *OverloadSolution( const char *name, std::vector<const UserProc *> &subs, const Type &leftType, bool isEnabledReturnType = false ); 196 196 197 197 void ApplyDefaultParameters( const Parameters ¶ms ); -
trunk/abdev/BasicCompiler32/OperatorProc.cpp
r402 r424 60 60 if(idCalc==CALC_EQUAL) lstrcpy(temporary,"=="); 61 61 else GetCalcName(idCalc,temporary); 62 const UserProc *pUserProc = OverloadSolution( temporary, subs, params, baseType );62 const UserProc *pUserProc = OverloadSolution( temporary, subs, params, baseType, leftType ); 63 63 64 64 if(!pUserProc){
Note:
See TracChangeset
for help on using the changeset viewer.