writef format specifier error message
    Ali Çehreli via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Mon Nov 16 11:49:18 PST 2015
    
    
  
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
    
    
More information about the Digitalmars-d-learn
mailing list