[Issue 1672] Literals should match template alias arguments

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Nov 15 11:33:26 PST 2007


http://d.puremagic.com/issues/show_bug.cgi?id=1672





------- Comment #2 from andrei at metalanguage.com  2007-11-15 13:33 -------
(In reply to comment #1)
> What does this have over:
> 
> template sort(char[] comp)
> 
> are you hoping to be able to pass either a string or a function?

Yes, the point is to pass either a string, a function, a delegate, or a
struct/class, and have the sort template discern how to proceed with static
if's.


-- 



More information about the Digitalmars-d-bugs mailing list