Why non- at property functions don't need parentheses

Simen kjaeraas simen.kjaras at gmail.com
Sun Feb 6 20:51:07 PST 2011


%u <wfunction at hotmail.com> wrote:

> Hi,
>
> I was wondering, why are we allowed to omit parentheses when calling  
> functions
> with no arguments, when they are not @properties? Is there a good reason  
> for
> relaxing the language rules like this?

This behavior is deprecated, but other features have had a higher priority
than removing features that do not cause big trouble. :p


-- 
Simen


More information about the Digitalmars-d-learn mailing list