www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11638] New: Variadic function documentation, out-of-date example

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 puremagic.com
        ReportedBy: luis luismarques.eu


--- Comment #0 from Luís Marques <luis 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: -------
Nov 28 2013