in reply to Re: Thoughts on new 'class' OO in upcoming perl
in thread Thoughts on new 'class' OO in upcoming perl
: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!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Thoughts on new 'class' OO in upcoming perl
by jdporter (Paladin) on Mar 17, 2023 at 21:32 UTC | |
by tobyink (Canon) on Mar 20, 2023 at 09:41 UTC | |
by jdporter (Paladin) on Mar 21, 2023 at 14:18 UTC |