Moritz Lenz moritz-at-casella.verplant.org |Perl 6| wrote:
Attributes need to have a twigil, so it would be
          has $.name


The syntax
   has $name;
with no twigil is legal according to S12. Perhaps the original poster (Xiao Yafeng) might like to read <http://www.dlugosz.com/Perl6/web/class-declarators.html>.

--John

Reply via email to