[cfe-dev] optional warning on member access without this

Dan Villiom Podlaski Christiansen danchr at gmail.com
Tue Jan 19 05:41:21 PST 2010


On 15 Jan 2010, at 23:19, Jochen Wilhelmy wrote:

> Hi!
> 
> when accessing members, I use this-> since it shows the
> member access in terms of the language. other common
> ways are e.g. using a prefix like m_.
> 
> it would be cool if there is an optional warning if a member
> is accessed without this->

If you implement this, you might want to consider implementing it for Objective-C as well :) (Objective-C uses ‘self’ instead of ‘this’, but otherwise the usage is similar.)

--

Dan Villiom Podlaski Christiansen
danchr at gmail.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1943 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100119/741ee0b4/attachment.bin>


More information about the cfe-dev mailing list