[Issue 11778] format for null does not verify fmt flags.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Dec 20 07:34:23 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=11778



--- Comment #3 from monarchdodra at gmail.com 2013-12-20 07:34:20 PST ---
(In reply to comment #1)
> Where is 's' defined?

Hum... I forgot to copy paste it. Much apologies.

I had defined it as:
enum s = "%d"

(In reply to comment #2)
> I guess this could be a test-case:
> 
> -----
> import std.stdio;
> void main()
> {
>     string s = "%d";
>     int* p;
>     writefln(s, p);  // does not throw
>     writefln(s, p + 1);
> }
> -----

Yes, exactly.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list