Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why does RapidApp-generated code use leading underscores for data member names?

0
Posted

Why does RapidApp-generated code use leading underscores for data member names?

0

All protected data members are given leading underscores, partly as an indication that these variables are protected members (leading underscores have long been used to denote “private”) and partly to prevent name collisions with member functions of the same name. For example, you can have a data member _name and an access function name() that retrieves _name. This is a convention used throughout ViewKit and happens to lend itself well to code generation.

Thanksgiving questions

*Sadly, we had to bring back ads too. Hopefully more targeted.