Colin Holzman

Results 28 comments of Colin Holzman

See https://www.w3.org/TR/scxml/#parallel

Removing the redundant assignments isn't a problem. Currently the state variable is a function pointer. It would take more significant refactoring to change that to an `int` of minimum size,...

I don't think you're wrong to say the state variable could be optimized. I'm not sure how function pointers are implemented on STM8 and Pauduk, but I'm guessing they're at...

> Without some real application code to look at it's hard to justify a change. I was thinking I would make the change and compile some examples to try to...

Ok thanks. I think changes to the state variable like this: self->state = NULL; self->state = oven_closed_cooking; where nothing happens between should definitely be eliminated. The reason they are like...

> It would be nice to optionally eliminate the tests at function entry: > > if (!self || !event) return -1; Fixed in 2543b5ea1a4ca7292fbf921e12484ae0d689b9d9.

See https://www.w3.org/TR/scxml/#history

Hmm, I'm not sure if this is relevant but I see this in the debugger: ![image](https://user-images.githubusercontent.com/20326304/178187080-7c76d535-8562-4340-9cae-3f03b8c37981.png)

Is there any workaround for this?

What I was thinking was doing something like how Calculate does it. It contributes two commands ("calculate" and "calculate and replace"). You select the expression to calculate and use those...