Pharo:#subclass:instanceVariables...个性化消息
我正在与对象消息 #subclass:instanceVariableNames:classVariableNames:poolDictionaries:category 作斗争,以便操作特定类的子类。 我有 RareClass 和类方法 #subclass:coposes...etc 并想做:
RareClass
subclass: #RareSubclass
composes: #SomeMagic
instanceVariableNames: ''
classVariableNames: ''
在浏览器中。 这个方法是否应该返回一个类,(我认为它确实如此)它根本不起作用,当我尝试“保存”时,我遇到解析错误...
I am fighting against the Object message #subclass:instanceVariableNames:classVariableNames:poolDictionaries:category, in order to manipulate subclasses of an specific class.
I have RareClass with a class method #subclass:coposes...etc and want to do:
RareClass
subclass: #RareSubclass
composes: #SomeMagic
instanceVariableNames: ''
classVariableNames: ''
in the browser.
whether this method should return a class, (and i think it does) it is not working at all, im getting parsing errors when i try to 'save'...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我猜您正在使用加载了重构引擎的 OmniBrowser?
重构引擎强制执行标准类模板,以启用对浏览器中执行的任何操作的撤消。显然这不能用于自定义类定义。
作为解决方法,您可以执行以下操作之一:
浏览器打开
),RBAddClassChange
中的代码以支持您的用例。I guess you are using OmniBrowser with the Refactoring Engine loaded?
The Refactoring Engine enforces the standard class templates to enable undo on any action performed in the browser. Obviously that cannot work with custom class definitions.
As a workaround you can do one of the following:
Browser open
),RBAddClassChange
to support your use case.