$SWITCH$ macro has been deprecated? Then what is the suggested alternative?

Hi.

The $SWITCH$ macro in the generator has been deprecated apparently ?
Then what is the suggested alternative?

Best Wishes,
Karol
3 comments
Comment actions Permalink
SwitchMacro has been replaced with TemplateSwitchMacro. The $SWITCH@ alias has been preserved.

Vaclav
0
Comment actions Permalink
Thanks, Vaclav.
Maybe this should be migrated by 3.0 -> 3.1 migration assistant?
0
Comment actions Permalink
It's not migrated automatically as both are functional, they behave the same unless switch got parameters (which is rare cases, as it's functionality added in 3.1), for switch with parameters only new SWITCH macro would work. It's left to language designer to decide when to migrate (though I'd migrate asap, as there's plan to drop legacy switches in 3.2). There's intention you can use to change old SWITCH instance to new on a one by one basis, or use "migrate all" action to fix all instances in workspace (Tools->Scripts->Migrations->MPS 3.1->Update SWITCH macro to support parameters).
0

Please sign in to leave a comment.