Tags and keywords
This content has been marked as discussing an ADVANCED topic!
For reference, an associated Policy Note (you don't need to visit this link yet):
This example is from the Webel HelpF` package, which is examined in detail in later slides. The Private` helper function z$sigsUD
has options represented by a Private` block z$opts$sigsUD
, which has the custom Stereotype keyword «M:OptionsPattern» applied. Note that in the code (and the SysML model), the z$opts$sigsUD
are shared by many functions (so nice and DRY).
Each Option is unpacked from the OptionsPattern[] using a ReadStructuralFeatureAction, the direct equivalent of using OptionValue.