[nem-en] 0000898: 'int' treated as an identifier even if used
without verbatim specifier (@)
Kamil Skalski
kamil.skalski at gmail.com
Wed Feb 14 19:42:41 CET 2007
Continuing discussion on
http://nemerle.org/bugs/view.php?id=898
I think it doesn't make sense to forbid using type name as variable
references. Even ignoring the fact that int/string/ushort/etc. as
plain type aliases, which we do not handle in any special way:
type int = System.Int32;
so this forbid would need to go to ALL type aliases.
This clearly does not make sense, since it is still possible to do:
using System;
match (x) {
| x as String => ...
}
The point is that user will be warned that the variable name "String"
or "int" (in case of | x as int => ) is not used. So I don't think
this is a real problem.
--
Kamil Skalski
http://nazgul.omega.pl
More information about the devel-en
mailing list