foo!(bar) ==> foo{bar}

Alexander Pánek alexander.panek at brainsware.org
Wed Oct 8 09:10:57 PDT 2008


Denis Koroskin wrote:
> What is Complex!float[] - Complex!(float)[] or Complex!(float[])?

I dunno. Both make sense. :)

OTOH, how often do you pass an array type to a template? As far as I can 
tell, you usually just pass the base type and an array of that base type 
as argument (like Template!(char)("string")).

Thus: Complex!float[] -> Complex!(float)[]



More information about the Digitalmars-d mailing list