21-May-2013 01:39, Timothee Cour пишет:
That was indeed what I was using in my updated ref based
reimplementation of formattedRead (see my original post for the link),
and the other functions getopt, readf) are the same AFAIK.

so why not add it to phobos:
it's safer (no null / invalid pointers)
simpler user code
more consistent with rest of phobos

we could either make the existing by pointer functions enter a
deprecation path, or add a 'formattedReadRef' version for all those
functions.

Thoughts?

You can just add an overload I bet. Since you can't read a pointer and &x is an r-value and (thank god) there wasn't decision to allow r-value as plain ref.


--
Dmitry Olshansky

Reply via email to