If an object method needs to report an error, then a return code should be used.
假如一个对象的方法需要报告一个错误,这时一个返回码需要用到。
互联网摘选
For expected state changes, use a return code, sentinel, or special method that returns a status.
对于可预知的状态改变, 使用返回代码 、 标记或者特定的方法返回状态值.
网络文摘精选
Like exec(), it also returns the last line and makes the return code available.
它还像exec()一样返回最后一行,并使返回代码可用。
互联网摘选
在某些情况下,审查是确定缺陷实例(比如未检查返回值)的唯一方法。
互联网摘选
这个代码位将SOAP信封的对象和方法进行解码,实例化本地对象,并返回将会在返回SOAP信封中被包装起来的结果。
互联网摘选
开发人员必须麻烦地通过编写代码来提取或封装真正的参数或返回值。
互联网摘选
当代码块完成时,将执行代码块并使用户返回$PS1提示符。
互联网摘选
Keywords: Positioning Module, Home position return, M code, AC Servo Driver.
关键词:定位模块,回原点,M代码,伺服驱动器。
互联网摘选
如果EVPD参数位(用于启用关键产品数据)为0并且Page Code参数字节为0,那么目标将返回标准inquiry数据。
互联网摘选
您将向函数条目添加一小段代码,而不是检查函数中的每个返回点。
互联网摘选
如果代码给方法传递错误的元素,那么尽管代码将编绎良好,但可能会导致运行时错误或者不返回任何结果。
互联网摘选
提示像以前那样,在第一次阅读时你可以跳过这个清单,在你遇到实际的C代码时在回头查看。
互联网摘选
actually, for the sake of genericity, parsers are really not hard-coded to return a match object.
事实上,为了通用性,并不要求分析器一定要返回匹配对象。
互联网摘选
The possibility of a-1 return value means that such code can lead to fatal application errors.
所以你那种用法会带来严重的应用程序错误的。
互联网摘选
是否要在其他代码中使用Raise方法取决于您需要返回的信息的多少。
互联网摘选
有了多个返回值,有良好的代码文档会更好&而Go允许你给返回值命名,就像参数一样。
互联网摘选