Skip to content

Commit

Permalink
define how "class attributes" are different from "attributes"
Browse files Browse the repository at this point in the history
  • Loading branch information
labster committed Jul 12, 2013
1 parent 3cbe9d4 commit d96e2c2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions S12-objects.pod
Original file line number Diff line number Diff line change
Expand Up @@ -798,8 +798,13 @@ is generated according to the secondary sigil:

our $.count; # generates a public read-only .count accessor
our %!cache is rw; # generates no public accessor
our @items; # generates no public accessor
my $.count; # generates a public read-only .count accessor
my %!cache is rw; # generates no public accessor
my @items; # generates no public accessor

Unlike attributes declared with C<has>, class attributes are shared between
the undefined type, all instances of the class, and all subclasses.

=head1 Construction and Initialization

Expand Down

0 comments on commit d96e2c2

Please sign in to comment.