Function declaration

Casper Færgemand" <shorttail at hotmail.com> Casper Færgemand" <shorttail at hotmail.com>
Wed Dec 25 07:57:52 PST 2013


 From http://dlang.org/declaration.html#Parameter

Parameter:
     InOutopt BasicType Declarator
     InOutopt BasicType Declarator ...
     InOutopt BasicType Declarator = DefaultInitializerExpression
     InOutopt Type
     InOutopt Type ...

How do I add a declarator to a parameter like "char * format"? I 
altered the language specification to add a "InOutopt Type 
Declarator", but is there another way? The specification overall 
is really good, but I've found a few missing things elsewhere, 
and I'm wondering if it really is missing or I'm missing the 
point. :P I can't see any way to add a parameter name to 
something of type Type.


More information about the Digitalmars-d-learn mailing list