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

Reconsider lookup precedence hierarchy in QML

    XMLWordPrintable

Details

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes