You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of using (unique) variable names, is there a way to create a number of reactors in a set? For example, in a main reactor this is what I'm trying to achieve (which obviously, as I know, has no bearing in official LF, but illustrates the point):
...
f = new foo();
std::vector<bah> b;
for (int i=0; i<10; i++) {
b.add(new bah());
f.y -> b.back().x;
}
...
The advantage would be in the logic to be able to refer to a reactor by its index instead of using switch statements.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Instead of using (unique) variable names, is there a way to create a number of reactors in a set? For example, in a
main reactor
this is what I'm trying to achieve (which obviously, as I know, has no bearing in official LF, but illustrates the point):The advantage would be in the logic to be able to refer to a reactor by its index instead of using
switch
statements.Beta Was this translation helpful? Give feedback.
All reactions