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

Remove __PLATFORM__ from the list of compile time constant

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.6.18
    • Component/s: Documentation
    • Labels:
      None

      Description

      Version 7.6.12 of the ECL Language Reference Manual lists _PLATFORM_ as a compile time constant. However, this constant appears to be only available at runtime. Steps to reproduce the behavior are shown below.

      This code doesn´t work (constant needed at compile time):

      #IF (__PLATFORM__='hthor')
      OUTPUT('hthor');
      #ELSE
      OUTPUT('Other');
      #END
      

      Whereas this code works (constant needed at runtime):

      OUTPUT(__PLATFORM__);
      

        Attachments

          Activity

            People

            • Assignee:
              jamesdefabia Jim DeFabia
              Reporter:
              hwatanuki Hugo Martinelli Watanuki
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: