Use case: eliminate hidden allocations in buildPath

Michel Fortin michel.fortin at michelf.ca
Wed Dec 4 19:14:21 PST 2013


On 2013-12-05 02:24:02 +0000, Manu <turkeyman at gmail.com> said:

> Allocator as the first argument? This is so you can use UFCS on the
> allocator to make the call?

Haha, no. That's because buildPath's arguments are (const(C[])[] 
paths...) with a "..." at the end. Can we put an argument after the 
variadic argument? I didn't check, but I though it was impossible... 
thus the allocator as the first argument.

-- 
Michel Fortin
michel.fortin at michelf.ca
http://michelf.ca



More information about the Digitalmars-d mailing list