Extract Options from an OptionsPattern[] in a SysML Activity (1)

Gallery
Tutorial
This content has been marked as discussing an ADVANCED topic!
Click on the image to view it full size
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.

Up next
Notes
Snippets (quotes/extracts)
Visit also
Visit also (backlinks)
Related slides (includes other tutorials)
Related slides (backlinks, includes other tutorials)