Changeset 13899


Ignore:
Timestamp:
2012-11-15T12:39:11+01:00 (11 years ago)
Author:
sjoelund.se
Message:
  • Tail recursion
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Compiler/FrontEnd/Inst.mo

    r13881 r13899  
    43234323  output Boolean res;
    43244324algorithm
    4325   res:= matchcontinue(inEls)
    4326     local list<SCode.Element> els;
     4325  res:= match (inEls)
     4326    local
     4327      list<SCode.Element> els;
     4328    case {} then false;
    43274329    case SCode.EXTENDS(baseClassPath = Absyn.IDENT("ExternalObject"))::_ then true;
    43284330    case _::els then hasExtendsOfExternalObject(els);
    4329     case _ then false;
    4330   end matchcontinue;
     4331  end match;
    43314332end hasExtendsOfExternalObject;
    43324333
Note: See TracChangeset for help on using the changeset viewer.