Syntax for struct constructors

Kagamin spam at here.lot
Mon Feb 8 03:16:49 PST 2010


Ali Çehreli Wrote:

>  > but it would be nicer if you could just do:
>  >
>  > Bar bar(256);
> 
> I miss that from C++ too. I assumed that there must be reasons related 
> to D's syntax for not allowing that.

This syntax is reserved for function prototypes.



More information about the Digitalmars-d mailing list