Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-8253

Result of macro changed by blank line

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • High
    • Resolution: Fixed
    • 6.06/04
    • 6.08/00
    • Cling
    • None
    • CentOS Linux release 7.2.1511 (Core)

    Description

      The anonymous in macroA.C declares an integer to be 1 then calls an anonymous in macroB.C, which sets the integer to be 2. Then it writes the result.

      In this case, the result is 1. So apparently, the change within macroB is local within the anonymous macro (i.e. not the same as root 5).

      However, removing the blank line in macroA.C (i.e. the second line), changes the result to 2. So in this case, we get the same result as for root 5.

      Adding or removing a blank line should not change the result of code.

      Attachments

        1. macroB.C
          0.0 kB
        2. macroA.C
          0.1 kB

        Activity

          People

            axel Axel Naumann
            nwarr Nigel Victor Warr
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: