October 31, 2012
On 10/31/12, Michael <pr@m1xa.com> wrote:
> http://d.puremagic.com/issues/show_bug.cgi?id=8006

I wonder if this is low-hanging fruit to implement in the DMD frontend. Could we really just implement "var.property += 5;" to "var.property = var.property + 5;" or is it much more complicated than that..

I might have a go at this soon.
October 31, 2012
On Wednesday, 31 October 2012 at 22:46:17 UTC, Andrej Mitrovic wrote:
> I wonder if this is low-hanging fruit to implement in the DMD
> frontend.

I tried it and found getting almost there is easy... but getting it
to work in a bunch of edge cases is incredibly difficult.
October 31, 2012
On 10/31/12, Adam D. Ruppe <destructionator@gmail.com> wrote:
> On Wednesday, 31 October 2012 at 22:46:17 UTC, Andrej Mitrovic wrote:
>> I wonder if this is low-hanging fruit to implement in the DMD frontend.
>
> I tried it and found getting almost there is easy... but getting
> it
> to work in a bunch of edge cases is incredibly difficult.
>

Could you share the failing test-cases? The patches would be welcome too! :]
November 01, 2012
On 2012-10-31 23:48, Adam D. Ruppe wrote:

> I tried it and found getting almost there is easy... but getting it
> to work in a bunch of edge cases is incredibly difficult.

I can imagine operator overloading, opDispatch and similar features making it a lot harder.

-- 
/Jacob Carlborg
1 2
Next ›   Last »