Jump to page: 1 2
Thread overview
[Issue 4532] New: Position specifiers don't work in format
Jul 29, 2010
Nick Sabalausky
Jul 30, 2010
Stewart Gordon
Aug 18, 2010
Stewart Gordon
Aug 16, 2011
Nick Sabalausky
[Issue 4532] std.string.format, std.stream methods, etc. still use the old doFormat instead of formattedWrite
Apr 01, 2012
Stewart Gordon
Apr 01, 2012
Stewart Gordon
Apr 01, 2012
Stewart Gordon
Apr 01, 2012
Stewart Gordon
Apr 01, 2012
Stewart Gordon
Apr 09, 2012
Stewart Gordon
Apr 10, 2012
Kenji Hara
Apr 10, 2012
Kenji Hara
Apr 10, 2012
Stewart Gordon
Apr 20, 2012
Stewart Gordon
Jan 25, 2013
Andrej Mitrovic
July 29, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4532

           Summary: Position specifiers don't work in format
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: cbkbbejeap@mailinator.com


--- Comment #0 from Nick Sabalausky <cbkbbejeap@mailinator.com> 2010-07-29 11:18:09 PDT ---
writefln("%1$s", "A");  // Prints "A"
format("%1$s", "A");  // Throws FormatError

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 30, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4532


Stewart Gordon <smjg@iname.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg@iname.com


--- Comment #1 from Stewart Gordon <smjg@iname.com> 2010-07-30 10:27:52 PDT ---
This is most peculiar.  Why has it been added directly into writef, rather than being put in doFormat where it belongs?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 18, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4532



--- Comment #2 from Stewart Gordon <smjg@iname.com> 2010-08-18 08:47:04 PDT ---
I've just looked at the code and seem to have figured out what's going on. Traditionally, std.format.doFormat is the function that underlies all the writef* functions and std.string.format.  However, a new templated function has been written to replace it, std.format.formattedWrite.  The problem is that std.string.format still uses doFormat, as do the writef* functions in std.stream and others.

We need to get this fixed, and then deprecate doFormat.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 16, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=4532


Nick Sabalausky <cbkbbejeap@mailinator.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simendsjo@gmail.com


--- Comment #3 from Nick Sabalausky <cbkbbejeap@mailinator.com> 2011-08-16 12:42:22 PDT ---
*** Issue 6455 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 01, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=4532


Stewart Gordon <smjg@iname.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@kyllingen.net


--- Comment #4 from Stewart Gordon <smjg@iname.com> 2012-04-01 15:04:29 PDT ---
*** Issue 5687 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 01, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=4532


Stewart Gordon <smjg@iname.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |k.hara.pg@gmail.com


--- Comment #5 from Stewart Gordon <smjg@iname.com> 2012-04-01 15:04:46 PDT ---
*** Issue 6595 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 01, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=4532


Stewart Gordon <smjg@iname.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tomeksowi@gmail.com


--- Comment #6 from Stewart Gordon <smjg@iname.com> 2012-04-01 15:05:31 PDT ---
*** Issue 5444 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 01, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=4532


Stewart Gordon <smjg@iname.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs@eml.cc


--- Comment #7 from Stewart Gordon <smjg@iname.com> 2012-04-01 15:05:44 PDT ---
*** Issue 7571 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 01, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=4532


Stewart Gordon <smjg@iname.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich@gmail.com


--- Comment #8 from Stewart Gordon <smjg@iname.com> 2012-04-01 15:06:00 PDT ---
*** Issue 7620 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 09, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=4532



--- Comment #9 from Stewart Gordon <smjg@iname.com> 2012-04-09 13:54:23 PDT ---
*** Issue 7877 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
« First   ‹ Prev
1 2