On Mon, Feb 15, 2016 at 03:51:43PM +0000, Stuart Brady wrote: > On Mon, Feb 15, 2016 at 03:05:36PM +0100, Marek Polacek wrote: > > On Sat, Feb 13, 2016 at 03:16:49AM +0000, Stuart Brady wrote: > > > For a hypothetical change to the C standard itself, I think one might use > > > the name "_ArraySize", but for a non-standard extension this would not be > > > appropriate. I think "__array_size" is fine, though, and is consistent > > > with "__alignof". > > > > Please no CamelCase, that's ugly ;). I also think that "__array_size" is > > fine.
[...] > Hypothetically, I suppose _Array_Size, _Array_size or _Arraysize would > all be better than the CamelCase verison. On further consideration, referring to N1570, I see now that _Array_size would be consistent in style with _Static_assert and _Thread_local, if such a keyword were ever to be added as part of the standard. -- Cheers, Stuart Brady