Attributes are declared with C<has>, but also have a unique signil C<$.>. So is it strictly necessary to declare them? Or rather, is it C<no strict>ly necessary -- i.e. is the following legal?

no strict;
class Foo {
  method bar {
   say $.a++
  }
}

Reply via email to