Skip to content

0.3.0

Compare
Choose a tag to compare
@faysou faysou released this 11 Aug 18:09
· 21 commits to master since this release

Added syntax for not storing all optional arguments in an object by default. If an option name is surrounded by a list, it is not stored in the object at creation time. To access this argument, the BaseClass.getOption function can be used.

For exampe

xx = NewClass["Fields"->{"a", {"b"} ,{"c"}->2, { {"d"}->3,"PopupMenu","Specs"->{{1,2,3}} } }];
xx .init[options_]:= o.getOption[options,"b"] // Print;
x = New[xx]["b"->2]
x // Keys