On Saturday, 10 October 2015 at 01:52:36 UTC, Martin Nowak wrote:
What would you use that for, a handwritten interface struct with function pointers made read-only using @property?


var a = var.emptyObject; // works today
a.prop = { do_stuff; }; // works today
a.prop(); // useless no op
a.prop()(); // this is needed

That one case alone is all I care about @property for.
  • Beta D 2.069.0-b1 Martin Nowak via Digitalmars-d-announce
    • Re: Beta D 2.069.0-b1 extrawurst via Digitalmars-d-announce
      • Re: Beta D 2.069.... Andrea Fontana via Digitalmars-d-announce
      • Re: Beta D 2.069.... Adam D. Ruppe via Digitalmars-d-announce
        • Re: Beta D 2.... Martin Nowak via Digitalmars-d-announce
          • Re: Beta ... Jonathan M Davis via Digitalmars-d-announce
          • Re: Beta ... Martin Nowak via Digitalmars-d-announce
            • Re: ... Adam D. Ruppe via Digitalmars-d-announce
              • ... Martin Nowak via Digitalmars-d-announce
                • ... Adam D. Ruppe via Digitalmars-d-announce
                • ... Steven Schveighoffer via Digitalmars-d-announce
                • ... Meta via Digitalmars-d-announce
                • ... Jonathan M Davis via Digitalmars-d-announce
                • ... deadalnix via Digitalmars-d-announce
                • ... Johannes Pfau via Digitalmars-d-announce
                • ... Jacob Carlborg via Digitalmars-d-announce
                • ... Kagamin via Digitalmars-d-announce
                • ... Kagamin via Digitalmars-d-announce

Reply via email to