DIP27 available for destruction

Timon Gehr timon.gehr at gmx.ch
Tue Feb 26 12:33:36 PST 2013


On 02/26/2013 09:00 PM, Jonathan M Davis wrote:
> ...
>
> auto foo(T)(T blah) {...}
>
> int func() { return 7; }
>
> void bar()
> {
>   ...
>   foo(func); //Does this call func or pass its address?
>   auto f = func; //Does this call func or take its address?
>   ...
> }
> ...

Neither.



More information about the Digitalmars-d mailing list