Skip to content

Commit

Permalink
[S02] remove section on "Properties"
Browse files Browse the repository at this point in the history
it seems that "properties" refer to either traits or run-time mixins with
infix but.
Both are described much more accurately and less out-of-date in S12 and S14
  • Loading branch information
moritz committed Apr 9, 2012
1 parent c0582b7 commit 67e83a4
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions S02-bits.pod
Expand Up @@ -14,7 +14,7 @@ Synopsis 2: Bits and Pieces
Created: 10 Aug 2004

Last Modified: 09 Apr 2012
Version: 262
Version: 263

This document summarizes Apocalypse 2, which covers small-scale
lexical items and typological issues. (These Synopses also contain
Expand Down Expand Up @@ -4749,29 +4749,6 @@ you now write

=back

=head1 Properties

=over 4

=item *

Properties work as detailed in S12. They're actually object
attributes provided by role mixins. Compile-time properties applied
to containers and such still use the C<is> keyword, but are now called
"traits". On the other hand, run-time properties are attached to
individual objects using the C<but> keyword instead, but are still
called "properties".

=item *

Properties are accessed just like attributes because they are in fact
attributes of some class or other, even if it's an anonymous singleton
class generated on the fly for that purpose. Since "C<rw>" attributes
behave in all respects as variables, properties may therefore also
be temporized with C<temp>, or hypotheticalized with C<let>.

=back

=head1 Grammatical Categories

Lexing in Perl 6 is controlled by a system of grammatical categories.
Expand Down

0 comments on commit 67e83a4

Please sign in to comment.