Details
-
Task
-
Resolution: Unresolved
-
P4: Low
-
None
-
None
Description
http://doc.trolltech.com/4.7/qdeclarativeintroduction.html says about QML ids:
Note that an id must begin with a lower-case letter or an underscore, and cannot contain characters other than letters, numbers and underscores.
But actually also any JavaScript keywords are forbidden, and 'as' (reserved keyword specifically in QML, I'm not sure whether there are also others).
List of JavaScript keywords can be found in https://developer.mozilla.org/en/JavaScript/Reference/Reserved_Words or http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf
Attachments
Issue Links
- relates to
-
QTBUG-119304 Cryptic error message when reserved keyword is used as property name
- Reported
-
QTBUG-87094 Lack of naming convention leads to name collisions and unexpected results.
- Closed
-
QTBUG-81329 QML (language) Specifications
- Withdrawn