Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用new一些文档示例中显示的规则,但出现错误:
new
ERROR: rule "new" unknown in module "Jamfile<path/to/my/module>"
我应该导入什么模块来访问这个规则?
您需要导入class模块。
class
因为class也是语言关键字,所以需要使用引号:
import "class" ;
然后你可以class.new在你的代码中使用
class.new