Unified function call syntax

Denis Koroskin 2korden at gmail.com
Mon Sep 8 03:26:19 PDT 2008


On Mon, 08 Sep 2008 14:09:12 +0400, Manfred_Nowak <svv1999 at hotmail.com>  
wrote:

> Denis Koroskin wrote:
>
>> First of all, member functions can
>> not be used as Unified Function Call, only free ones.
>
> What is the motivation for this rule?
>
> My question is motivated by the observation, that there might be no
> functions in D, that can be called "free". This is because every
> function belongs to a `module', which can be interpreted as the
> definition of a singleton `class'.
>
> -manfred
>

Okay, I stand corrected. I just don't see member functions as those that  
can be used as UFC (except, static ones), but your example can change my  
mind.

Inner functions should also be usable as UFC.



More information about the Digitalmars-d mailing list