Unexpected type names with template typedefs

BCS BCS at pathlink.com
Tue Apr 29 09:16:56 PDT 2008


Simen Kjaeraas wrote:
> BCS wrote:
> 
>> you might be getting a smaller case than what you want, namely the  
>> typedef rater than the name of the template. this might be be related 
>> to  fully qualified names and such.
> 
> 
> That's what I think as well. I'm just wondering if it is correct. Seeing as
> the typedef maps to a template instantiation that would normally be called
> bar!(Something), I'd expect the typedef to match that name.
> 
> -- Simen

I think you might be in undefined territory. Not that it should be 
undefined though. IMHO what you are doing /should/ work.

p.s.

I'd like to see this as well

typedef foo!(T) bar(T);

or if the args on the right looks to ugly:

typedef(T) foo!(T) bar;


More information about the Digitalmars-d-learn mailing list