http://d.puremagic.com/issues/show_bug.cgi?id=4639
--- Comment #3 from Don <clugd...@yahoo.com.au> 2010-08-13 12:02:20 PDT --- (In reply to comment #2) > (In reply to comment #1) > > This is not a bug. From the spec: > > "Alias parameters enable templates to be parameterized with any type of D > > symbol, including global names, local names, typedef names, module names, > > template names, and template instance names. Literals can also be used as > > arguments to alias parameters." > > > > Built-in types are not on that list. > > > Hmm.. I don't think so. > > "parameterized with any type of D symbol, including ..." > > Why are not built-in primitive types included in "any type of D symbol"? > Is there any particular reason that user defined type names (like struct > names) > are allowed but built-in type names are not allowed? I think such a limitation > is not natural. I basically agree with you, but syntactically, they are quite different, and it's an intentional decision by Walter. See for example bug 1341. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------