Summary: Allow isExpression and templates to capture template
                    parameters and FQN of template
           Product: D
           Version: future
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD

--- Comment #0 from Simen Kjaeraas <> 2009-12-11 07:26:57 
PST ---
Currently, there is no way to extract FQN of a template from an instantiation,
nor to get its parameters. This is not completely true, as one could parse its
stringof representation, but this is often not enough.

I therefore propose that the following syntax be allowed:

template foo( T : U!( V ), U, V... )

Thus, one could get the base template or parameters of an instantiation using
the following templates:

template BaseTemplate( T : U!( V ), U, V... ) {
  alias U BaseTemplate;
template TemplateParameters( T : U!( V ), U, V... ) {
  alias V TemplateParameters;

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to