3 ms·
I haven't really looked at D in a long time, so I'm not clear on what's going on here. Is D allowing you to write the function call "days(2)" as "2.days"? (As
by mcguire 13y ago
I haven't really looked at D in a long time, so I'm not clear on what's going on here.
Is D allowing you to write the function call "days(2)" as "2.days"?
(As an aside, Nimrod allows you to do specifically that; first-arg.function-name(...) == function-name(first-arg,...).)