Is [] mandatory for array operations?

Steven Schveighoffer schveiguy at
Fri May 7 08:44:18 PDT 2010

On Fri, 07 May 2010 11:18:37 -0400, Robert Jacques <sandford at>  

> On Fri, 07 May 2010 11:11:47 -0400, Steven Schveighoffer  
> <schveiguy at> wrote:
>> As I've said before, I think a possible compromise to this is to allow  
>> paren-less function calls when the return type is void.  These  
>> functions cannot be misinterpreted as properties.
>> I won't go over the other points again :)
>> -Steve
> One of the major uses of paren-less functions is chaining, which always  
> return typeof(this), not void.

It's a compromise.  It doesn't do everything you want, but it is good for  
some of it.


More information about the Digitalmars-d mailing list