May 11, 2002 Re: new streams | ||||
---|---|---|---|---|
| ||||
Posted in reply to Burton Radons | "Burton Radons" <loth@users.sourceforge.net> wrote in message news:sjunduovt39c2tcntmkv6rp23cn8thmk9g@4ax.com... > I think we should get the scanf and fmt format codes aligned. My method is "%s" for char[], "%S" for wchar[], "%+s" for char*, and "%+S" for wchar*. Different semantics for what looks like the same thing is bad city. I've been thinking about the problem of writing wide characters vs ascii characters. Embedding it in the format string isn't going to work too well, as what happens with: printf("foo %S bar"); Are foo and bar written as unicode or ascii? I don't know many applications that would want to mix the two. The practical solution I see is to have two printf's, one for ascii and one for unicode. I.e. printf and wprintf. |
Copyright © 1999-2021 by the D Language Foundation