Bug 11638 – Variadic function documentation, out-of-date example

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-11-28T15:56:00Z
Last change time
2014-04-23T22:03:07Z
Keywords
pull
Assigned to
andrej.mitrovich
Creator
luis

Comments

Comment #0 by luis — 2013-11-28T15:56:21Z
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?
Comment #1 by github-bugzilla — 2014-04-23T22:03:07Z
Commits pushed to master at https://github.com/D-Programming-Language/dlang.org https://github.com/D-Programming-Language/dlang.org/commit/020071b2486d7098dddca2accdaa59731a207101 Fix Issue 11638 - Update variadic example so it compiles. https://github.com/D-Programming-Language/dlang.org/commit/abd12f8e75476d83a4102708af2cf9e2d7d6226a Merge pull request #541 from AndrejMitrovic/Fix11638 Issue 11638 - Update variadic example so it compiles.