在Perl中实现完美的实现? [英] unbless implementation in Perl?

查看:84
本文介绍了在Perl中实现完美的实现?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

许多Perl开发人员都知道,祝福用于从对象中删除祝福 .
我正在研究实施情况,以了解其内部运作方式.
我尝试检查其实现在其软件包中:

As many Perl developers know, unbless is used to remove the blessing from objects.
I am trying to understand how does it internally work by investigating its implementation.
I tried to check its implementation in its package Data::Structure::Util. Here's the Source:

sub unbless {
    unbless_xs( $_[0] );
}

在哪里可以找到unbless_xs子实现/源?

Where may I find unbless_xs sub implementation/source ?

推荐答案

它是用C实现的,您可以在

It's implemented in C, you can check the source of the function at https://metacpan.org/source/ANDYA/Data-Structure-Util-0.16/Util.xs#L239

这篇关于在Perl中实现完美的实现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆