Title
Nomenclature for variable vs reference non-static data member
Status
drafting
Section
6.1 [basic.pre]
Submitter
Daniel Krügler

Created on 2012-07-24.00:00:00 last changed 147 months ago

Messages

Date: 2022-02-18.07:47:23

According to 6.1 [basic.pre] paragraph 6,

A variable is introduced by the declaration of a reference other than a non-static data member or of an object.

In other words, non-static data members of reference type are not variables. This complicates the wording in a number of places, where the text refers to “variable or data member,” presumably to cover the reference case, but that phrasing could lead to the mistaken impression that all data members are not variables. It would be better if either there were a term for the current phrase “variable or data member” or if there were a less-unwieldy term for “non-static data member of reference type” that could be used in place of “data member” in the current phrasing.

History
Date User Action Args
2012-11-03 00:00:00adminsetstatus: open -> drafting
2012-07-24 00:00:00admincreate