Skip to content

Commit 471e747

Browse files
committed
document X::Bind::NativeType
1 parent 3b79954 commit 471e747

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

lib/X/Bind/NativeType.pod

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
=begin pod
2+
3+
=TITLE class X::Bind::NativeType
4+
5+
class X::Bind::NativeType does X::Comp { }
6+
7+
Compile-time error thrown when trying to bind to a natively typed variable.
8+
9+
Since native variables explicitly don't have the concept of a container at
10+
run time. Thus it does not make sense to support both binding and assignment,
11+
and Perl 6 supports only assignment (which makes more sense, because native
12+
types are value types). So use assignment for natively typed variables.
13+
14+
=end pod

0 commit comments

Comments
 (0)