Re: [Blog post] Operator overloading for structs in D

2016-06-03 Thread Mike Parker via Digitalmars-d-announce
On Friday, 3 June 2016 at 06:47:40 UTC, Minas Mina wrote: Also, if you post your own articles, Reddit is likely to put you on their auto-ban list :-( What can I do about this? Announce the post here and ask someone to post it to reddit for you.

Re: [Blog post] Operator overloading for structs in D

2016-06-02 Thread Minas Mina via Digitalmars-d-announce
On Thursday, 2 June 2016 at 20:53:18 UTC, Walter Bright wrote: On 6/2/2016 11:34 AM, Minas Mina wrote: I have written a blog post about operator overloading for structs. You can find it here: https://www.reddit.com/r/programming/comments/4m8mgr/operator_overloading_for_structs_in_d/ Comments

Re: [Blog post] Operator overloading for structs in D

2016-06-02 Thread Walter Bright via Digitalmars-d-announce
On 6/2/2016 11:34 AM, Minas Mina wrote: I have written a blog post about operator overloading for structs. You can find it here: https://www.reddit.com/r/programming/comments/4m8mgr/operator_overloading_for_structs_in_d/ Comments and suggestions are appreciated. Things usually go better on R

Re: [Blog post] Operator overloading for structs in D

2016-06-02 Thread Minas Mina via Digitalmars-d-announce
On Thursday, 2 June 2016 at 18:55:36 UTC, Steven Schveighoffer wrote: On 6/2/16 2:34 PM, Minas Mina wrote: [...] Cool. You missed one very significant thing. That is using mixins to take advantage of the operator string. For example, opOpAssign can be done in one step: ref Rational opOpAss

Re: [Blog post] Operator overloading for structs in D

2016-06-02 Thread Steven Schveighoffer via Digitalmars-d-announce
On 6/2/16 2:34 PM, Minas Mina wrote: I have written a blog post about operator overloading for structs. You can find it here: https://www.reddit.com/r/programming/comments/4m8mgr/operator_overloading_for_structs_in_d/ Comments and suggestions are appreciated. Cool. You missed one very signif

[Blog post] Operator overloading for structs in D

2016-06-02 Thread Minas Mina via Digitalmars-d-announce
I have written a blog post about operator overloading for structs. You can find it here: https://www.reddit.com/r/programming/comments/4m8mgr/operator_overloading_for_structs_in_d/ Comments and suggestions are appreciated.