[Issue 10334] ddoc should prefer simple syntax for template instantiations with one parameter

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jun 11 09:07:32 PDT 2013


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



--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-06-11 09:07:31 PDT ---
This is a little bit complicated to implement. I have to take into account at
least the following (where left is the input, right is the output), and these
are also used for .di header generation so they must have valid D syntax:

Templ!() -> Templ!()
Templ!(T) -> Templ!T
Templ!T -> Templ!T
Templ!([1]) -> Templ!([1])  // cannot be Templ![1]
Templ!(Templ2!(T)) -> Templ!(Templ2(T)  // cannot be Templ!Templ2!T

That last case is what I'm struggling with. How do I figure out whether an
Object from 'tiargs' is a template instance in DMDFE?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list