Changeset 113
- Timestamp:
- 03/31/08 14:15:44 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Operators/DelegatingOperator.cs
r90 r113 35 35 scope.AddVariable(new Variable(Guid.ToString(), new NullData())); 36 36 37 // add aliases 38 foreach (IVariableInfo variableInfo in VariableInfos)37 // add aliases and local variables 38 foreach (IVariableInfo variableInfo in VariableInfos) { 39 39 scope.AddAlias(variableInfo.FormalName, variableInfo.ActualName); 40 if (variableInfo.Local) 41 scope.AddVariable(GetVariable(variableInfo.ActualName)); 42 } 40 43 41 44 CompositeOperation next = new CompositeOperation(); … … 50 53 scope.RemoveVariable(Guid.ToString()); 51 54 52 // remove aliases 53 foreach (IVariableInfo variableInfo in VariableInfos)55 // remove aliases and local variables 56 foreach (IVariableInfo variableInfo in VariableInfos) { 54 57 scope.RemoveAlias(variableInfo.FormalName); 58 if (variableInfo.Local) 59 scope.RemoveVariable(variableInfo.ActualName); 60 } 55 61 56 62 OnExecuted();
Note: See TracChangeset
for help on using the changeset viewer.