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

Using SHARED definitions in the same folder

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.8.4
    • Component/s: None
    • Labels:

      Description

      When using a folder as a module and defining the last attribute as SHARED in an ECL file, other ECL files within the same folder are unable to refer to the SHARED definition. I am guessing this is not the expected behaviour because an ECL file with no actions and only a SHARED definition syntax-checks.

      I understand that the syntax for using such SHARED definitions is not properly defined, so I am assuming it is similar to the way EXPORTed definitions are used.

      ==A.ecl==

      SHARED A := 1;

      ==B.ecl==
      IMPORT $;

      // Both of the below definitions do not work
      // EXPORT B := A + 2; // This is probably not expected to work anyway.
      EXPORT B := $.A + 2; // This is probably the right syntax but does not work.

        Attachments

          Activity

            People

            • Assignee:
              ghalliday Gavin Halliday
              Reporter:
              starsid Siddhartha Bagaria (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: