Specialization based on expression context-especially void and Boolean context.
基于表达式上下文的特化——尤其是void和boolean上下文。
For example if the node-set is used in a Boolean context, the only processing needed is to test whether it is empty.
例如,如果该节点集在布尔型上下文中使用,唯一需要的处理就是测试它是否是空的。
In Vimscript, as in c, only the numeric value zero is false in a Boolean context; any non-zero numeric value-whether positive or negative-is considered true.
和c一样,在Vimscript中,对于布尔值来说,只有数值0为假;任何非0数值—不管是正数还是负数—都为真。
应用推荐