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
Parameters of the superclass cannot be accessed in the sub class reactor's top-level statement.
For example, the following example uses it as an argument of timer.
targetPython;
# super classreactorGeneralController(control_period=100ms) {
reaction(startup) {=print(f"hello")
=}
}
reactorPIController2extendsGeneralController {
# error , Accessing super class's parameters in reactortimert(0, self.control_period) # with selfreaction(startup) {=print(f"hello")
=}
}
reactorPIController3extendsGeneralController {
# error , Accessing super class's parameters in reactortimert(0, control_period) # without selfreaction(startup) {=print(f"hello")
=}
}
Parameters of the superclass cannot be accessed in the sub class reactor's top-level statement.
For example, the following example uses it as an argument of
timer
.Errors provided by
lfc
are as followsThis problem does not occur for access within a reaction.
This code can be executed without error
The text was updated successfully, but these errors were encountered: