Two cases showing imperfection of the const system
SiegeLord
none at none.com
Thu Feb 16 16:53:22 PST 2012
On Friday, 17 February 2012 at 00:34:41 UTC, Timon Gehr wrote:
> This compiles with DMD 2.057 and DMD 2.058:
>
> import std.stdio;
> inout(char)[] test(inout(char)[] x){
> inout(char)[][int] a;
> a[1]=x;
> return a[1];
> }
>
> void main(){
> writeln(test(['a']));
> }
Whoops, nevermind then on it not working now. I look forward to
seeing how it will work when AA's are templates.
-SiegeLord
More information about the Digitalmars-d
mailing list