mirror of
https://github.com/Perl/perl5.git
synced 2026-01-26 08:38:23 +00:00
perlclass.pod - remove mention of :writer from the TODO section
As noted earlier in the file, this has been implemented and there don't seem to be any breaking changes planned.
This commit is contained in:
parent
201ee5d599
commit
86ccb03763
@ -401,22 +401,6 @@ mechanism that makes all field initializer expressions appear within the same
|
||||
CV on ADJUST blocks as well, merging them all into a single CV per class. This
|
||||
will make it faster to invoke if a class has more than one of them.
|
||||
|
||||
=item * More accessor generator attributes
|
||||
|
||||
Attributes to request that other kinds of accessor methods be generated for
|
||||
fields. Likely C<:writer>.
|
||||
|
||||
class X {
|
||||
field $name :writer;
|
||||
}
|
||||
|
||||
Equivalent to
|
||||
|
||||
class X {
|
||||
field $name;
|
||||
method set_name ($new) { $name = $new; return $self; }
|
||||
}
|
||||
|
||||
=item * Metaprogramming
|
||||
|
||||
An extension of the metaprogramming API (currently proposed by
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user