Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-16620

//#IMPORT(LEGACY|MODERN) to control import semantics.

    XMLWordPrintable

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 6.2.0
    • Code Generator

    Description

      This is a feature added to help migrate old users from the legacy import semantics.

      The special format comment:

      //#IMPORT(LEGACY)

      means that all following ECL will use the legacy import rules.

      //#IMPORT(MODERN)

      ensures that it uses the new rules.

      The idea is that attributes can gradually be moved over from legacy to modern, but adding
      //#IMPORT (MODERN)
      to the head of the file, and then fixing any resulting compile issues. Once most attributes are switched over
      //#IMPORT(LEGACY)
      can be added to any remaining attributes, and the default for the system can be switched from legacy. Any remaining attributes can then be changed as required.

      NOTE: Slightly unusually //#IMPORT within a macro definition only applies to the contents of that macro definition. This allows exported macro definitions to be switched over in the same way.

      Attachments

        Issue Links

          Activity

            People

              ghalliday Gavin Halliday
              ghalliday Gavin Halliday
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: