Re: Non-const std.container.Array.opIndex and alikes blocks serialization

2014-09-30 Thread Nordlöw
On Sunday, 28 September 2014 at 20:27:32 UTC, monarch_dodra wrote: This is the whole "function attributes on left side confusion" - fiasco thing... https://github.com/D-Programming-Language/phobos/pull/2573

Re: Non-const std.container.Array.opIndex and alikes blocks serialization

2014-09-28 Thread monarch_dodra via Digitalmars-d-learn
On Sunday, 28 September 2014 at 09:04:42 UTC, Nordlöw wrote: On Sunday, 28 September 2014 at 08:58:27 UTC, Nordlöw wrote: In my strive to add msgpacking support for std.container.Array I've been blocked by the fact that std.container.Array.opIndex only has one overload which is non-const probab

Re: Non-const std.container.Array.opIndex and alikes blocks serialization

2014-09-28 Thread Nordlöw
On Sunday, 28 September 2014 at 08:58:27 UTC, Nordlöw wrote: In my strive to add msgpacking support for std.container.Array I've been blocked by the fact that std.container.Array.opIndex only has one overload which is non-const probably because it returns a ref T. This doesn't place nicely with

Non-const std.container.Array.opIndex and alikes blocks serialization

2014-09-28 Thread Nordlöw
In my strive to add msgpacking support for std.container.Array I've been blocked by the fact that std.container.Array.opIndex only has one overload which is non-const probably because it returns a ref T. This doesn't place nicely with serialization. Shouldn't inout be used here?