Disabling certain messages
Nim generates some warnings and hints that may annoy the user. A mechanism for disabling certain messages is provided: Each hint and warning message is associated with a symbol. This is the message’s identifier, which can be used to enable or disable the message by putting it in brackets following the pragma:
{.hint[XDeclaredButNotUsed]: off.} # Turn off the hint about declared but not used symbols.
This is often better than disabling all warnings at once.
当前内容版权归 nim-lang.org 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 nim-lang.org .