writef format specifier error message

ric maicle via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Nov 16 15:28:34 PST 2015


On Tuesday, 17 November, 2015 03:49 AM, Ali Çehreli wrote:
> On 11/16/2015 10:56 AM, ric maicle wrote:
>> I accidentally typed an extra asterisk in the format specifier.
>> I know that it is wrong but the error isn't clear about what
>> and where the error is.
>>
>> import std.stdio;
>>
>> void main()
>> {
>> writef("%*10s", 100);
>> }
>>
>> and I got the following error message(s):
>>
>> $ dmd -run writef.d
>> std.format.FormatException at std/format.d(978): $ expected
>
> That message can be improved. Please open a bug report:
>
>    https://issues.dlang.org/enter_bug.cgi
>
> Thank you,
> Ali

Filed: https://issues.dlang.org/show_bug.cgi?id=15348


More information about the Digitalmars-d-learn mailing list