Skip to content

Commit c84fafe

Browse files
committed
Adds reference to P6Opaque, refs #1863, #1957
1 parent e10e3e7 commit c84fafe

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/Language/traits.pod6

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,15 @@ also native.
3434
=item X<CUnion> is going to use the same representation as an C<union> in C; see
3535
L<this|/language/nativecall#CUnions> for an example.
3636
37+
On the other hand, X<P6opaque> is the default representation used for all
38+
objects in Perl 6.
3739
40+
m: class Thar {};
41+
say Thar.REPR; #OUTPUT: «P6opaque␤»
42+
43+
The L<meta object protocol|/language/mop> uses it by default for every object
44+
and class unless specified otherwise; for that reason, it is in general not
45+
necessary unless you are effectively working with that interface.
3846
3947
=end pod
4048

0 commit comments

Comments
 (0)