develooper Front page | perl.perl6.language | Postings from May 2008

grammar for 'constant' ?

Thread Next
From:
John M. Dlugosz
Date:
May 3, 2008 11:34
Subject:
grammar for 'constant' ?
The synopses are contradictary over the way 'constant' works.  First it says that it is a declarator like 'my'.  Then in S12 it shows

  my constant ...
and
  our constant ...

that is, independant from the my or our declarator.  

Assuming the second way is newer/better, what is the grammar for this?  Is it a declarator if used on its own, or a different category?

Oh, and should it still say that if you leave off the optional 'my' or 'our' that it defaults to 'my', or should it be 'our' like everything else?

--John

Thread Next


Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About