Re: [sv-bc] Mantis 2674 and 2611 (ballot 123 and 131)

From: Greg Jaxon <Greg.Jaxon_at_.....>
Date: Mon Apr 27 2009 - 16:58:33 PDT
Gordon Vreugdenhil wrote:
Mantis 2674 (fopen filename) and 2611 (package/class :: prefix
binding) have proposals in Mantis.
     http://www.eda-stds.org/mantis/view.php?id=2674
     http://www.eda-stds.org/mantis/view.php?id=2611
If the prefix name is resolved using the normal scope resolution rules, the '::' shall denote the class resolution operator. Otherwise the '::' shall denote the package resolution operator.
Based on our earlier exchanges on this subject, I have to counter-propose this rewording of Sect 23.7.1:

If the left operand of the scope resolution operator :: resolves via the normal scope resolution rules
to a name previously declared as a type, it shall denote the class scope resolution operator (see 8.22).
Otherwise the '::' shall denote the package resolution operator.


Text in 8.22 could, but need not change to clarify this.

I feel there is at least a human factors reason to not let data names shadow package names: there are just too many
places you need to look to track down a collision with a data name, there are far fewer ways to declare type names.

Greg Jaxon


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean. Received on Mon Apr 27 16:59:19 2009

This archive was generated by hypermail 2.1.8 : Mon Apr 27 2009 - 17:00:00 PDT