免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3364 | 回复: 3

Perl 中的bless怎么翻译? [复制链接]

论坛徽章:
0
发表于 2013-11-29 12:54 |显示全部楼层
Perl 中的bless怎么翻译?

论坛徽章:
5
丑牛
日期:2014-01-21 08:26:26卯兔
日期:2014-03-11 06:37:43天秤座
日期:2014-03-25 08:52:52寅虎
日期:2014-04-19 11:39:48午马
日期:2014-08-06 03:56:58
发表于 2013-11-29 13:10 |显示全部楼层
{:2_172:}不累死

论坛徽章:
1
CU十二周年纪念徽章
日期:2013-10-24 15:41:34
发表于 2013-11-29 13:33 |显示全部楼层
回复 2# pitonas


    布蕾丝。。。。。。。。

一些编程语言中的英文不是必须知道它的中文意思的,翻译过来就没有原来的意思了,所以,知道它的具体作用就行了,它没有别的名字,就叫做bless

如果感兴趣,可以根据自己的对这个function的理解的基础上,去查查它的英文翻译,然后自己觉得怎么叫着对就怎么叫

论坛徽章:
145
技术图书徽章
日期:2013-10-01 15:32:13戌狗
日期:2013-10-25 13:31:35金牛座
日期:2013-11-04 16:22:07子鼠
日期:2013-11-18 18:48:57白羊座
日期:2013-11-29 10:09:11狮子座
日期:2013-12-12 09:57:42白羊座
日期:2013-12-24 16:24:46辰龙
日期:2014-01-08 15:26:12技术图书徽章
日期:2014-01-17 13:24:40巳蛇
日期:2014-02-18 14:32:59未羊
日期:2014-02-20 14:12:13白羊座
日期:2014-02-26 12:06:59
发表于 2013-11-29 13:57 |显示全部楼层
回复 1# chenxianzai

$ perldoc -f bless
    bless REF,CLASSNAME
    bless REF
            This function tells the thingy referenced by REF that it is now
            an object in the CLASSNAME package. If CLASSNAME is omitted, the
            current package is used. Because a "bless" is often the last
            thing in a constructor, it returns the reference for
            convenience. Always use the two-argument version if a derived
            class might inherit the function doing the blessing. See perlobj
            for more about the blessing (and blessings) of objects.

            Consider always blessing objects in CLASSNAMEs that are mixed
            case. Namespaces with all lowercase names are considered
            reserved for Perl pragmata. Builtin types have all uppercase
            names. To prevent confusion, you may wish to avoid such package
            names as well. Make sure that CLASSNAME is a true value.

            See "Perl Modules" in perlmod.
   
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP