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

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 ma

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

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 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. D

Re: funky property error with assoc array

2012-11-15 Thread Dan
On Wednesday, 14 November 2012 at 22:07:10 UTC, Jonathan M Davis wrote: Postblit doesn't work with const objects and there's not currently any way to make it work with const objects. So, any attempt to copy any element in your AA won't work. So, if the AA implementation has any code in it whi

Re: funky property error with assoc array

2012-11-14 Thread Jonathan M Davis
On Wednesday, November 14, 2012 20:48:57 Dan wrote: > 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 > -

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 pg

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 pg

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 p