Implicitly converting a newly allocated array to immutable

H. S. Teoh hsteoh at quickfur.ath.cx
Mon Jan 6 16:26:59 PST 2014


On Tue, Jan 07, 2014 at 12:01:33AM +0000, Meta wrote:
[...]
> Also, is there any hack that I can use to build an AA at compile time?
> I have a module level variable that's a string[][string] and I'd like
> to initialize it without resorting to static this.

Unfortunately, this is currently impossible due to the way AA's are
implemented.

I do have a few ideas of how it might be done, but the last time I tried
I couldn't get far enough to actually have it work.


T

-- 
The two rules of success: 1. Don't tell everything you know. -- YHL


More information about the Digitalmars-d-learn mailing list