As an example, without comments, a generated aspect method from the UIPainter
would be:
whereas with comments, it generates:
nameSpaceHolder
<resource: #uiAspect>
nameSpaceHolder isNil ifTrue:[
nameSpaceHolder := lastNamespace asValue.
].
^ nameSpaceHolder.
nameSpaceHolder
<resource: #uiAspect>
"automatically generated by UIPainter ..."
"*** the code below creates a default model when invoked."
"*** (which may not be the one you wanted)"
"*** Please change as required and accept it in the browser."
"*** (and replace this comment by something more useful ;-)"
nameSpaceHolder isNil ifTrue:[
nameSpaceHolder := ValueHolder new.
"/ if your app needs to be notified of changes, uncomment one of the lines below:
"/ nameSpaceHolder addDependent:self.
"/ nameSpaceHolder onChangeSend:#nameSpaceHolderChanged to:self.
].
^ nameSpaceHolder.
Copyright © 1999 eXept Software AG, all rights reserved