Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-125989

Reconsider lookup precedence hierarchy in QML

XMLWordPrintable

      The fact that types rank above properties makes it hard to address value types. If we made them generally addressable, they would shadow properties and break code. Therefore, we now have "pragma ValueTypeBehavior: Addressable".

      If types ranked below properties, we wouldn't have this problem, but we'd have to decide where exactly in the context/scope hierarchy we'd put them. If we put them on the very bottom, then context properties in any parent context or scope properties in any outer scope would shadow types. Such a thing would be rather unpredictable.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qtqmlteam Qt Qml Team User
            ulherman Ulf Hermann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes