Changeset 374 in dev
- Timestamp:
- Nov 26, 2007, 10:47:04 PM (17 years ago)
- Location:
- trunk/abdev
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler32/Compile_Statement.cpp
r373 r374 614 614 //第2パラメータを取得(in~) 615 615 i=GetOneParameter(Parameter,i,collectionVar); 616 616 617 617 if( !GetVarType( variable, resultType, false ) ) 618 618 { 619 619 Type collectionType; 620 if( !NumOpe_GetType( Parameter, Type(), collectionType ) )620 if( !NumOpe_GetType( collectionVar, Type(), collectionType ) ) 621 621 { 622 622 isError = true; … … 625 625 626 626 // 未定義の場合は自動的に定義する 627 sprintf(temporary,"%s%c%c%s", variable, 1, ESC_AS, collectionType.GetActualGenericType(0).GetClass().GetFullName() ); 627 sprintf(temporary,"%s%c%c%s", variable, 1, ESC_AS, collectionType.GetActualGenericType(0).GetClass().GetFullName().c_str() ); 628 MessageBox(0,temporary,"test",0); 628 629 OpcodeDim(temporary,DIMFLAG_INITDEBUGVAR); 629 630 } -
trunk/abdev/BasicCompiler_Common/src/Class.cpp
r370 r374 1356 1356 1357 1357 //インターフェイス名を取得 1358 GetIdentifierToken( temporary, basbuf, i ); 1358 GetCommandToken( temporary, basbuf, i ); 1359 1360 char className[VN_SIZE]; 1361 Jenga::Common::Strings typeParameters; 1362 SplitGenericClassInstance( temporary, className, typeParameters ); 1359 1363 1360 1364 CClass *pobj_c = const_cast<CClass *>( this->Find(namespaceScopes, temporary) ); … … 1372 1376 continue; 1373 1377 } 1378 1379 ///////////////////////////////////////////////////////// 1380 // ☆★☆ ジェネリクスサポート ☆★☆ 1381 BOOST_FOREACH( const std::string &typeParameter, typeParameters ) 1382 { 1383 pobj_c->AddFormalGenericType( GenericType( typeParameter, Type(DEF_OBJECT,*GetObjectClassPtr()) ) ); 1384 } 1385 ///////////////////////////////////////////////////////// 1374 1386 1375 1387 pobj_c->Readed();
Note:
See TracChangeset
for help on using the changeset viewer.