Skip to content

Commit d1af529

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

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

lib/X/Bind/NativeType.pod

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,24 @@ run time. Thus it does not make sense to support both binding and assignment,
1111
and Perl 6 supports only assignment (which makes more sense, because native
1212
types are value types). So use assignment for natively typed variables.
1313
14+
For example the code
15+
16+
my int $x := 3;
17+
18+
dies with
19+
20+
Cannot bind to natively typed variable '$x'; use assignment instead
21+
22+
and can be fixed by writing it as
23+
24+
my int $x = 3;
25+
26+
=head1 Methods
27+
28+
=head2 name
29+
30+
method name() returns Str:D
31+
32+
Returns the name of the variable.
33+
1434
=end pod

0 commit comments

Comments
 (0)