Ignore:
Timestamp:
Dec 18, 2007, 2:51:10 AM (16 years ago)
Author:
dai_9181
Message:

Foreachに対応。
ジェネリクスインターフェイスに対応。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abdev/BasicCompiler32/Compile_Statement.cpp

    r374 r380  
    600600    bool isError = false;
    601601
    602     //レキシカルスコープをレベルアップ
    603     compiler.codeGenerator.lexicalScopes.Start( compiler.codeGenerator.GetNativeCodeSize(), LexicalScope::SCOPE_TYPE_FOR );
    604 
    605602    //第1パラメータを取得
    606603    char variable[VN_SIZE];
     
    615612    i=GetOneParameter(Parameter,i,collectionVar);
    616613
     614    //レキシカルスコープをレベルアップ
     615    compiler.codeGenerator.lexicalScopes.Start( compiler.codeGenerator.GetNativeCodeSize(), LexicalScope::SCOPE_TYPE_FOR );
     616
    617617    if( !GetVarType( variable, resultType, false ) )
    618618    {
     
    626626        // 未定義の場合は自動的に定義する
    627627        sprintf(temporary,"%s%c%c%s", variable, 1, ESC_AS, collectionType.GetActualGenericType(0).GetClass().GetFullName().c_str() );
    628         MessageBox(0,temporary,"test",0);
    629628        OpcodeDim(temporary,DIMFLAG_INITDEBUGVAR);
    630629    }
     
    653652
    654653    // Currentプロパティから現在の値を取得
    655     // TODO: 型指定が未完成
    656     sprintf( temporary, "%s=%s.Current As String", variable, collectionVar );
     654    sprintf( temporary, "%s=%s.Current", variable, collectionVar );
    657655    Compile( temporary );
    658656
Note: See TracChangeset for help on using the changeset viewer.