Answering your second question: no, those are different. If in the second option you used "insertAfter" (instead of "insertAtTail"), then maybe you'd get the same result.
Alternatively, you can get the same result as the first option as follows: CallExpr* temp = new CallExpr(PRIM_ACTUALS_LIST,$1); temp->insertAtTail($3); Vass On 05/11/17 01:16, Tomsy Paul wrote: > Hi all, > > 1. What is the derivation of (i,j) in the following > > for (i,j) in A.domain do ... > > Is it > expr => > lhs_expr=> > parenthesized_expr=> > TLP tuple_expr_ls TRP=> > TLP tuple_component TCOMMA tuple_component TRP => > TLP expr TCOMMA expr TRP => > TLP lhs_expr TCOMMA lhs_expr TRP=> > TLP ident_expr TCOMMA ident_expr TRP=> > TLP id TCOMMA id TRP ? > > 2. Is there any difference between the following? > > new CallExpr(PRIM_ACTUALS_LIST,$1,$3); > > and > > new CallExpr(PRIM_ACTUALS_LIST,$1); > $1->insertAtTail($3); > > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > > _______________________________________________ > Chapel-developers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/chapel-developers > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Chapel-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/chapel-developers
