std.array.Appender with fixed size arrays

bearophile bearophileHUGS at lycos.com
Tue Jun 8 09:30:14 PDT 2010


Richard Webb:
> char[2] tmp = ['a', 'b'];
> app.put(tmp);
> 
> then it fails. Seems to be because char[2] isn't a forward range, so it
> doesn't match the version of put that takes a range.
> 
> Is this a bug?

Maybe it's not a bug, but it's a limitation. With some more work on the Appender then this limit can be removed. If you want you can fix the problem and submit a patch in bugzilla. Probably it's not too much hard to do.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list