text() vs. format() for formatting assert/exception messages

Joseph Rushton Wakeling via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jun 1 04:10:36 PDT 2014


Hello all,

What's the current state of preference (if any) for using std.conv.text vs. 
std.string.format (or others?) when formatting error messages for 
assert/enforce/exceptions?

I seem to recall a deprecation message pushing the use of std.string.format at 
some point in the past, but text() now seems to pass without comment.

Thanks & best wishes,

     -- Joe


More information about the Digitalmars-d-learn mailing list