As of now evaluating (clock) have no return value. So its not possible for the simulator to know if e.g., a halt condition has been encountered.
Solution
Introducing a return type for the Component::clock method.
Something like
enum Condition {
Error(String),
Halt(String),
}
And let clock return Result<(),Condition>, where Ok(()) indicates that clocking was successful, and Condition some type of exception. We can later refine the Condition to be more specific if we like but this could work to start out with.
Problem
As of now evaluating (clock) have no return value. So its not possible for the simulator to know if e.g., a halt condition has been encountered.
Solution
Introducing a return type for the
Component::clock
method.Something like
And let
clock
returnResult<(),Condition>
, whereOk(())
indicates that clocking was successful, andCondition
some type of exception. We can later refine theCondition
to be more specific if we like but this could work to start out with.Condition
in the simulator, allowing run to halt/error etc.Condition
andSimulator
status invizia
.Condition
andSimulator
status inegui
.