[cfe-dev] C++0x expression taxonomy

Douglas Gregor dgregor at apple.com
Sun Jun 20 16:29:37 PDT 2010


On Jun 19, 2010, at 8:04 AM, Sebastian Redl wrote:
> C++0x introduces a new taxonomy for expressions. We've got lvalues,
> xvalues and prvalues, and their groupings glvalues and rvalues. These
> are mostly relevant for reference binding, but that also includes casts.
> I wonder, would it be better to try to integrate classification with the
> current Expr::isLvalue function (e.g. extend the LV_Result enum with
> LV_XValue), or should I write a separate function for that?


I would start with a separate classification function (whose results are probably a superset of those of isLvalue), and we'll gradually move isLvalue callers over to that new classification function.

	- Doug



More information about the cfe-dev mailing list