Hi,
The latest image now has some more options for meta links. The complete list is listed in the #defaultOptions method of MetaLink class: defaultOptions ^ #( + optionInlineMetaObject "meta object is inlined by default." + optionInlineCondtion "condition is inlined by default.” (ups, typo, will fix) - optionCompileOnLinkInstallation "generate compiledMethod on link installation" - optionOneShot "remove link after first activation" - optionMetalevel "force level: 0 for the link" - optionDisabledLink "links are active by default" ) Some of the options make only sense because after this issue will be integrated: we will have a mechanism that classes can enforce options for all links installed in them. This is done by adding a method on the instance or class side like this: metaLinkOptions ^{ #exampleMethodWithMetaLinkOptionsViaClass -> #( + optionCompileOnLinkInstallation) } This allows e.g. a class to turn off links for one method or enforce using meta-level awareness. (for now the options are overridden when installing a link, I will move this into the code generator to have a real overlay semantics as a next step). Marcus
|
Done: (some caching maybe later to speed up options parsing in the code generator, but for now it is important that it works correctly) Marcus |
In reply to this post by Marcus Denker-4
Why the aversion to classes? Personally, I'd much prefer a MetaLinkOptions class with boolean instvars, and a class comment... Would work much better with the tools we have (finding users, etc.) and a class enforcing method such as: overrideMetaLinkOptions: options ^options oneShot: false; yourself Cheers, Henry signature.asc (859 bytes) Download Attachment |
Yes.. the current way starts to be too complex… could be a good next step. Marcus |
+ 1
Symbols and strings and arrays are dead limited objects. Not even zomby objects. No behavior no fun.
|
Free forum by Nabble | Edit this page |