On 3/23/16 6:25 PM, Ali Çehreli wrote:
On 03/23/2016 02:31 PM, cy wrote:
> struct Someop(Type) {
>Type thing;
>void foo() {
> thing.bar();
>}
> }
>
> struct Foo {
>void bar() {
> import std.stdio: writeln;
> writeln("bar");
>}
> }
>
> struct Bar
On 03/23/2016 02:31 PM, cy wrote:
> struct Someop(Type) {
>Type thing;
>void foo() {
> thing.bar();
>}
> }
>
> struct Foo {
>void bar() {
> import std.stdio: writeln;
> writeln("bar");
>}
> }
>
> struct Bar {
>void thingy(inout(Foo) foo) inout {
> auto
halp
There's a module that tries to define complex operations on both
const and non-const structs, since it's the same operation for
both. So every function that invokes those operations is
copy-pasted twice, just with "const" added. Switching to inout to
eliminate that huge amount of code du