std.boxer and arrays

Daniel Keep daniel.keep.lists at gmail.com
Wed Oct 17 01:50:22 PDT 2007


There are two distinct things that you cannot do, however.

The first of these is convert a normal, non-templated variadic
function's arguments into an array of Variants.  If you've got a member
of an interface that needs to be variadic, you can't simply change it to
a template.

The second is the ability to call a variadic function using an array of
variants.  So, for example, calling writefln with an array of variants
that magically get put on the stack the way the function at the other
end expects them.

Out of all the dynamic types I've seen, std.boxer is the only one that
has this.

	-- Daniel



More information about the Digitalmars-d mailing list