埃菲尔:参照其他类常量设置一个常量 [英] Eiffel: setting a constant with reference to other class constant
本文介绍了埃菲尔:参照其他类常量设置一个常量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在Eiffel中设置引用另一个类常量的常量?
How to set a constant refering to another class constant in Eiffel?
不幸的是,这样的事情不会编译
Something like that doesn't compile unfortunately
Default_log_level: like {MY_LOGGER}.log_level = {MY_LOGGER}.Log_level_info
推荐答案
在当前版本的Eiffel中不能使用其他常量属性来定义常量属性.
Constant attributes cannot be defined using other constant attributes in the current version of Eiffel.
这篇关于埃菲尔:参照其他类常量设置一个常量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文