Skip to content

Commit

Permalink
document X::Bind::NativeType
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Aug 21, 2012
1 parent 471e747 commit d1af529
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions lib/X/Bind/NativeType.pod
Expand Up @@ -11,4 +11,24 @@ run time. Thus it does not make sense to support both binding and assignment,
and Perl 6 supports only assignment (which makes more sense, because native
types are value types). So use assignment for natively typed variables.
For example the code
my int $x := 3;
dies with
Cannot bind to natively typed variable '$x'; use assignment instead
and can be fixed by writing it as
my int $x = 3;
=head1 Methods
=head2 name
method name() returns Str:D
Returns the name of the variable.
=end pod

0 comments on commit d1af529

Please sign in to comment.