Changeset 1546
- Timestamp:
- 05/23/10 11:53:03 (15 years ago)
- Files:
-
- trunk/docsrc/changelog.dd (modified) (1 diff)
- trunk/phobos/std/format.d (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/docsrc/changelog.dd
r1545 r1546 8 8 $(WHATSNEW 9 9 $(LI std.functional: toDelegate now accepts callable(function pointers, delegates and objects implement opCall) ) 10 10 $(LI std.traits: Added templates to get compile-time information about functions.) 11 11 $(LI std.typecons: Added tie and AutoImplement.) 12 12 ) 13 13 $(BUGSFIXED 14 14 $(LI $(BUGZILLA 2835): std.socket.TcpSocket doesn't actually connect) 15 15 $(LI $(BUGZILLA 3200): std.xml doesn't follow spec for Tag.text) 16 16 $(LI $(BUGZILLA 3873): std.range.repeat should have popBack defined) 17 17 $(LI $(BUGZILLA 3880): std.regex functions with const/immutable Regex object) 18 $(LI $(BUGZILLA 4109): writeln doesn't work with empty static array) 18 19 $(LI $(BUGZILLA 4202): Changset 1517 doesn't compile) 19 20 ) 20 21 ) 21 22 22 23 <div id=version> 23 24 $(UL 24 25 $(NEW 047) 25 26 $(NEW 046) 26 27 $(NEW 045) 27 28 $(NEW 044) trunk/phobos/std/format.d
r1499 r1546 2030 2030 if (f.spec == 'r') 2031 2031 { 2032 2032 // raw writes 2033 2033 foreach (i, e; obj) formatGeneric!(Writer, typeof(e)) 2034 2034 (w, &e, memberSpec); 2035 2035 } 2036 2036 else 2037 2037 { 2038 2038 if (obj.length == 0) return; 2039 2039 // formatted writes 2040 formatGeneric!(Writer, typeof(obj[0]))(w, &obj[0], memberSpec);2040 formatGeneric!(Writer, typeof(obj[0]))(w, obj.ptr, memberSpec); 2041 2041 if (!f.innerTrailing) 2042 2042 { 2043 2043 foreach (i, e; obj[1 .. $]) 2044 2044 { 2045 2045 w.put(' '); 2046 2046 formatGeneric!(Writer, typeof(e))(w, &e, f); 2047 2047 } 2048 2048 } 2049 2049 else 2050 2050 {
