Commits

O01eg committed bd20012

GP: Optimize %0 as returning LIST.

Comments (0)

Files changed (2)

   - Add type optimization.
   - Move functions to base GP folder.
   - Remove ADF from generated objects.
+  - Optimize %0 as returning LIST.
 
 Version 0.0.5 2012-09-05
  - Support for C++0x (GCC 4.5.3)
 		}
 		while(! GP::CheckForParam(adf));
 		res.SetADF(adf_index, adf);
-		res.SetADF(adf_index, GP::Optimize(adf, res, rules));
+		res.SetADF(adf_index, GP::Optimize(adf, res, rules, (adf_index == 0) ? GP::OPT_REQ_LIST : GP::OPT_NONE));
 	}
 	res.Minimize();
 	return res;
 			adf = new_adf;
 		}
 		res.SetADF(adf_index, adf);
-		res.SetADF(adf_index, GP::Optimize(adf, res, rules));
+		res.SetADF(adf_index, GP::Optimize(adf, res, rules, (adf_index == 0) ? GP::OPT_REQ_LIST : GP::OPT_NONE));
 	}
 	res.Minimize();
 	return res;
 			}
 		}
 		res.SetADF(adf_index, adf);
-		res.SetADF(adf_index, GP::Optimize(adf, res, rules));
+		res.SetADF(adf_index, GP::Optimize(adf, res, rules, (adf_index == 0) ? GP::OPT_REQ_LIST : GP::OPT_NONE));
 	}
 	res.Minimize();
 	return res;