@@ -607,7 +607,7 @@ B<P6opaque>. External access to opaque objects is always through method
607
607
calls, even for attributes.
608
608
609
609
为了支持 OO 封装,这里有个基本数据类型:B<P6opaque>。外部通常通过方法调用处
610
- 理 opaque 对象,即使是对 attributes 进行处理。
610
+ 理 opaque 对象,即使是对 attribute 进行处理。
611
611
612
612
=item *
613
613
@@ -649,7 +649,7 @@ considered equivalent even if they have the same attributes because
649
649
classes are not considered immutable.
650
650
651
651
参数类型的名称等价仅适用于被认为不可变的参数(或者它们之间只少有一个不可变快
652
- 照)。即使两个不同的类有同样的 attributes ,也从来不认为等价,因为它们不认为是可
652
+ 照)。即使两个不同的类有同样的 attribute ,也从来不认为等价,因为它们不认为是可
653
653
变类型。
654
654
655
655
=item *
@@ -658,15 +658,15 @@ Perl 6 supports the notion of B<properties> on various kinds of
658
658
objects. Properties are like object attributes, except that they're
659
659
managed by the individual object rather than by the object's class.
660
660
661
- Perl 6 对各种对象支持 B<properties > 概念。Properties 与对象 attributes
661
+ Perl 6 对各种对象支持 B<property > 概念。Property 与对象 attribute
662
662
类似,除了它们被独立的对象管理,而不是被对象的类管理。
663
663
664
664
According to S12, properties are actually implemented by a
665
665
kind of mixin mechanism, and such mixins are accomplished by the
666
666
generation of an individual anonymous class for the object (unless
667
667
an identical anonymous class already exists and can safely be shared).
668
668
669
- 根据 S12,properties 实际上是通 1 种混合机制实现,这样的混合体是为对象通过一个
669
+ 根据 S12,property 实际上是通 1 种混合机制实现,这样的混合体是为对象通过一个
670
670
独特匿名类的衍生而实现的(除非一个完全相同的匿名类已经存在并可以被安全共享)。
671
671
672
672
=item *
@@ -676,8 +676,8 @@ variables and classes, are also called B<traits>. Traits cannot be
676
676
changed at run-time. Changes to run-time properties are done via
677
677
mixin instead, so that the compiler can optimize based on declared traits.
678
678
679
- Properties 适用于对象在编译时构建,比如变量和类,也被称为 B<特性>。特性不能在运
680
- 行时被改变。运行时 properties 的改变是经过混合体代替完成,所以编译器可以基于声
679
+ Property 适用于对象在编译时构建,比如变量和类,也被称为 B<trait>。trait 不能在运
680
+ 行时被改变。运行时 property 的改变是经过混合体代替完成,所以编译器可以基于声
681
681
明特性优化。
682
682
683
683
=item *
0 commit comments