Re: funky property error with assoc array

2012-11-15 Thread Jonathan M Davis
On Thursday, November 15, 2012 14:21:41 Dan wrote: I do not see how copy constructors can help. Receiving const(T) or const(T) ref to anything and hoping to copy it is the challenge and doing it from a copy constructor is no easier than a postblit. Doing it from a postblit is impossible.

Re: funky property error with assoc array

2012-11-15 Thread Dan
On Thursday, 15 November 2012 at 17:24:44 UTC, Jonathan M Davis wrote: On Thursday, November 15, 2012 14:21:41 Dan wrote: I do not see how copy constructors can help. Receiving const(T) or const(T) ref to anything and hoping to copy it is the challenge and doing it from a copy constructor is no

Re: funky property error with assoc array

2012-11-15 Thread Jonathan M Davis
On Thursday, November 15, 2012 19:30:03 Dan wrote: On Thursday, 15 November 2012 at 17:24:44 UTC, Jonathan M Davis wrote: On Thursday, November 15, 2012 14:21:41 Dan wrote: I do not see how copy constructors can help. Receiving const(T) or const(T) ref to anything and hoping to copy it

Re: funky property error with assoc array

2012-11-15 Thread Dan
Thanks, I think I get it. const and postblit don't mix. Copy ctors don't yet exist but are the hoped for solution to inability to copy const instances. Copy ctor proposal/solution has not yet been written up in the newsgroups or details discussed beyond Andrei and Walter, but have been and

Re: funky property error with assoc array

2012-11-15 Thread Jonathan M Davis
On Friday, November 16, 2012 06:17:55 Dan wrote: You mention that possibly postblits will go away. That is discomforting. It would likely stay around for a very long time for backwards compatibility and simply be discouraged, but I don't know. Walter is big on backwards compatilbility though,

funky property error with assoc array

2012-11-14 Thread Dan
This fails to compile when accessing as m.pgoo() complaining about postblit. What is wrong with this? Note: If I alias as array instead of map: alias const(X)[] Map; it compiles fine. Thanks Dan - struct X { this(this) {} } alias const(X)[string] Map; @property int

funky property error with assoc array

2012-11-14 Thread Dan
This fails to compile when accessing as m.pgoo() complaining about postblit. What is wrong with this? Note: If I alias as array instead of map: alias const(X)[] Map; it compiles fine. Thanks Dan - struct X { this(this) {} } alias const(X)[string] Map; @property int

funky property error with assoc array

2012-11-14 Thread Dan
This fails to compile when accessing as m.pgoo() complaining about postblit. What is wrong with this? Note: If I alias as array instead of map: alias const(X)[] Map; it compiles fine. Thanks Dan - struct X { this(this) {} } alias const(X)[string] Map; @property int