writef, positional arguments, and array formatting

Max Samukha samukha at voliacable.com.removethis
Thu Oct 9 09:36:34 PDT 2008


On Thu, 09 Oct 2008 11:22:50 -0500, Andrei Alexandrescu
<SeeWebsiteForEmail at erdani.org> wrote:

>Max Samukha wrote:
>> On Thu, 09 Oct 2008 10:55:34 -0500, Andrei Alexandrescu
>> <SeeWebsiteForEmail at erdani.org> wrote:
>> 
>>> Max Samukha wrote:
>>>> Positional formatting would be great. Maybe make it zero-based? Would
>>>> it conflict with the '0' flag then? Or $ is enough to disambiguate?
>>>> What about making %1 a shortcut for %1$s?
>>> It's in already, just not very tested. I used the POSIX positional 
>>> formatting syntax.
>>>
>> 
>> Will you relieve the constraints that there must be no multiple %
>> pointing to the same argument and positional and non-positional % must
>> not be mixed?
>
>Those restrictions have been relaxed. Try it!
>
>Andrei

Relax is the right word, thanks. Didn't know it's in the current
phobos. Very nice.



More information about the Digitalmars-d mailing list