On Thu, 04 Dec 2014 10:21:10 +0000 uri via Digitalmars-d-learn <digitalmars-d-learn@puremagic.com> wrote:
> Do you guys use @property much, or is it largely ignored/avoided? i'm using it alot for the things that looks like properties. ;-) the thing is looking like a property if it works almost as fast as accesing the field directly. i.e. does simple check or two, but doesn't calculate something heavy. that means that `area` for Rect is definitely a property, but `equalElementCount` for a single-linked list is not. i also using that alot to simulate read-only fields.
signature.asc
Description: PGP signature