[Issue 1059] String literal concatenated with array of chars -	inconsistent behavior
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sat Aug 23 08:45:10 PDT 2008
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=1059
------- Comment #3 from matti.niemenmaa+dbugzilla at iki.fi  2008-08-23 10:45 -------
The template issue can be worked around as well, replace [a,b,...] with
(cast(typeof(a))[] ~ a ~ b ~ ...):
template A(char a, char b) { const char[] A = cast(char[])[] ~ a ~ b; }
-- 
    
    
More information about the Digitalmars-d-bugs
mailing list