Skip to content

Commit

Permalink
Fix Issue 17154 - Added opDollar to std.conv.toChars
Browse files Browse the repository at this point in the history
  • Loading branch information
JackStouffer committed Feb 7, 2017
1 parent 72a2b2e commit d5ae07f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions std/conv.d
Expand Up @@ -5900,6 +5900,8 @@ auto toChars(ubyte radix = 10, Char = char, LetterCase letterCase = LetterCase.l

@property size_t length() { return upr - lwr; }

alias opDollar = length;

@property bool empty() { return upr == lwr; }

@property Char front() { return buf[lwr]; }
Expand Down

0 comments on commit d5ae07f

Please sign in to comment.