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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Lu�s Marques <[email protected]> 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: -------