:common
Since version 0.62.
Marks that this method is a class-common method, instead of a regular instance method. A class-common method may be invoked on class names instead of instances. Within the method body there is a lexical $class available, rather than $self. Because it is not associated with a particular object instance, a class-common method cannot see instance fields.
Ah. You mean static. OK.
I mean ... these things are called either static methods or class methods. ":common" ... what are they even common for? Is there actually any language in which these would be called common methods?
Jenda
1984 was supposed to be a warning,
not a manual!
In reply to Re^2: Thoughts on new 'class' OO in upcoming perl
by Jenda
in thread Thoughts on new 'class' OO in upcoming perl
by cavac
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |