用Objective-C的术语来说,这叫做“传递消息”(pass a message)。消息有“名称”(name)或者“选择子”(selector),也可以接受参数,而且可能还有返回值。
基于32个网页-相关网页
Of course the spawned thread can pass a message back to its parent thread.
当然,这个派生的线程也可以将消息传递回其母线程。
Autrey began shouting at straphangers to be quiet so he could pass a message to his kids.
奥崔开始向搭地铁、拉着吊环站立的乘客呼喊,要他们安静,这样他才能给孩子们一个口讯。
I was ready to lose the game and leave Old Trafford with a smile just to pass a message of confidence.
我此前也已经准备好输掉这场比赛后带着笑脸离开老特拉福德,这也能传递出我们自信的信息。
It means anybody using that little function get float doesn't have to worry about what's inside of it. So for example, I decide I want to change the message I print out, I don't have to change the function, I just pass in a different parameter.
这代表着用这个方法去获得浮点数,的任何人都不用担心具体的实现了,例如,如果我想改变下,显示的信息的话,我不必去改变方法,我传个不同的参数就可以了。
As we talk about this, as people talk about this, in the context of our object-oriented programming, they typically will talk about it in terms of message pass, a message passing metaphor.
当我们讨论这个的时候,当人们讨论这个的时候,在面向对象编程的背景下它们往往会,被称为消息传递,也就是传递隐喻的消息。
应用推荐