Getting "this" to work similar to "self" in Python

nurfz via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jul 22 16:19:35 PDT 2015


Hmm, is there a specific reason aside from the encapsulation 
violation?  It seems needlessly complicated.  If you have 
someone/something that has direct access to your source code, 
isn't a getter/setter the least of your concerns?  Does the 
@property decorator incur a large runtime cost?


More information about the Digitalmars-d-learn mailing list