I use this in C#:
delegate StateDelegate StateDelegate();
StateDelegate state;
What is the Silver equivalent?
I use that for state machine.
The state is a method.
The method return next state or null.
Thanks
I use this in C#:
delegate StateDelegate StateDelegate();
StateDelegate state;
What is the Silver equivalent?
I use that for state machine.
The state is a method.
The method return next state or null.
Thanks
Hmm, good Q. I don’t believe you can declare this using Swift’s block/delegate syntax.
Thanks for the confirmation.
Looks like I need to back to old style, switch state using enum.