Hi,
what is the default invocant of methods?
method blarb ($normal_param) {...}
# Same as
method blarb (Class | ::?CLASS $invocant: $normal_param) {...}
# or
method blarb (::?CLASS $invocant: $normal_param) {...}
# ?
I prefer the latter, as then one can't accidentally call a instance
method on the class -- i.e.
Foo.blarb # will die.
You can always specify Class as invocant, if you want to have a class
method.
Opinions?
--Ingo
--
Linux, the choice of a GNU | Elliptic paraboloids for sale.
generation on a dual AMD |
Athlon! |