Assigning to char[N]

Ali Çehreli acehreli at yahoo.com
Wed Feb 1 21:38:26 PST 2012


On 02/01/2012 04:24 PM, Andrej Mitrovic wrote:
 > OT: Just saw fill() by accident and something caught my eye:
 >
 > char[100] a;
 > fill(a[], "bla");  // fail, ok
 >
 > int[100] a;
 > fill(a[], "bla");  // works
 >
 > It could be a constraint issue.

Although "bla" is an array of char, it is a range of dchar; and dchar 
automatically converts to int.

 > To bugzilla?

I don't think so, because it's just dchar to int conversion.

Ali


More information about the Digitalmars-d-learn mailing list