【发布时间】:2023-03-31 03:32:01
【问题描述】:
我的问题在以下代码的注释中。
namespace TestMacroLib
{
[assembly: Nemerle.Internal.OperatorAttribute ("TestMacroLib", "multiply", false, 160, 161)]
// what does 160 and 161 represent? The parameters are "left" and "right", but that doesn't help.
public macro multiply(op1, op2)
{
<[ ( $op1 * $op2 ) ]>
}
}
此代码示例来自: Infix format for Nemerle macro
【问题讨论】:
标签: macros attributes operators nemerle