代码拉取完成,页面将自动刷新
"SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co.,Ltd.",
"Unilang standard library initialization.";
"This file is a component of Unilang installation.",
"To keep the environment well-formed,",
" users shall not modify the content in this file.";
$def! std.classes $let ()
(
$def! impl__ $provide!
(
class?
make-class
object?
make-object
$access
)
(
$def! (encapsulate-class% class? decapsulate-class)
() make-encapsulation-type;
$defl! make-class (base ctor)
encapsulate-class% (list base ctor);
$defl! ctor-of (c) first (rest% (decapsulate-class c));
$defl! base-of (c) first (decapsulate-class c);
$defl! apply-ctor (c self args)
apply (ctor-of c) (list* self args);
$def! (encapsulate-object% object? decapsulate-object)
() make-encapsulation-type;
$defl! make-object (c .args)
(
$def! self () make-environment;
$def! base base-of c;
$if (null? base) () (apply-ctor base self ());
apply-ctor c self args;
encapsulate-object% (move! self)
);
$defv%! $access (&o &id) d
eval% id (decapsulate-object (eval% o d));
);
() lock-current-environment
);
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。