D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 4310 - variadic templates article example code uses std.stdarg incorrectly
Summary: variadic templates article example code uses std.stdarg incorrectly
Status: RESOLVED WORKSFORME
Alias: None
Product: D
Classification: Unclassified
Component: dlang.org (show other issues)
Version: D2
Hardware: x86_64 All
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-14 06:31 UTC by Trass3r
Modified: 2015-06-09 01:27 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Trass3r 2010-06-14 06:31:29 UTC
I'm not sure, but the code given at http://digitalmars.com/d/2.0/variadic-function-templates.html uses size_t.sizeof instead of int.sizeof
Comment 1 Don 2012-05-22 23:59:15 UTC
The use of size_t is OK, but the example code should be using std.stdarg, va_arg!(arg), etc.

Changing to a website bug.
Comment 2 AndyC 2015-01-25 00:57:21 UTC
closing: that page no longer uses size_t or std.stdarg
Comment 3 hsteoh 2015-01-25 15:56:56 UTC
Bugs that have been fixed should be marked WORKSFORME.