[Issue 11638] New: Variadic function documentation, out-of-date example

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Nov 28 15:56:25 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=11638

           Summary: Variadic function documentation, out-of-date example
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: websites
        AssignedTo: nobody at puremagic.com
        ReportedBy: luis at luismarques.eu


--- Comment #0 from Luís Marques <luis at luismarques.eu> 2013-11-28 23:56:21 WET ---
The example of a (non-template) variadic function at
http://dlang.org/variadic-function-templates.html does not compile:

  - It is necessary to add import core.vararg
  - std.stdio.writefx is private (and undocumented)

Adding the import and changing writefx to write does not fully solve the
problem:

  - http://dpaste.dzfl.pl/92d6ac76

Someone please finish that update.

Also, perhaps it should be added that the use of variadic functions is not
recommended, and they are kept almost only for the support of extern(C)
variadic functions? Or is that not true?

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list