For my application, I define a few runtime constants that describe the scenarios I am interested in during a particular simulation run.
对于我的应用程序,我定义了几个运行时常量,它们描述了在特定的模拟运行期间我感兴趣的几个方案。
This is great when it occurs, but it doesn't help very often because it's much more common to build strings from runtime data than from compile-time constants.
这种功能非常了不起,但它并不经常起作用,因为通常从运行期数据创建字符串而不是从编译期常量。
应用推荐