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

BEGINC++ functions stated as actions are being commoned-up and folded.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Not specified
    • Resolution: Duplicate
    • Affects Version/s: 6.0.0
    • Fix Version/s: None
    • Component/s: eclcc
    • Labels:
      None

      Description

      integer4 mkRandom3 :=
      BEGINC++ #option action
      return rtlRandom();
      ENDC++;
      
      output(NOFOLD(mkRandom3 = mkRandom3));
      

      gives the following generated code excerpt:

      	case 1U: {
      				bool v1;
      				v1 = true;
      				ctx->setResultBool(0,0U,v1);
      			}
      

      Without the NOFOLD, just:

      				ctx->setResultBool(0,0U,true);
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jamienoss Jamie Noss
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: