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

Source code module reference for macros

    XMLWordPrintable

Details

    Description

      This is a request for a new ECL language token that would function within MACRO and FUNCTIONMACRO code.

      Proposed symbol: #$

      Purpose: At compile-time, the symbol would be replaced by the fully-qualified name of the module that contains the MACRO or FUNCTIONMACRO source code.

      Reason: Some MACRO and FUNCTIONMACRO code is written within a module and rely on attributes within that module (its "home module"). However, when MACRO or FUNCTIONMACRO code is referenced it is instantiated in (potentially) a different module or scope. Since file-based modules that serve as stand-alone utility libraries can potentially be located anywhere in a repo, the exact FQN of a MACRO or FUNCTIONMACRO's home module is not always known. The module FQN is known at compile time, however, and this request is to expose that information by replacing a new token (#$) with the module FQN at compile time.

      Attachments

        Activity

          People

            ghalliday Gavin Halliday
            dcamper Dan S. Camper
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: