On 1/24/2013 12:23 PM, Walter Bright wrote:
On 1/24/2013 5:41 AM, deadalnix wrote:
For regular functions :
1. funName is the function itself :
   void funName() {}
   static assert(is(typeof(funName) == void function())); // Pass.
   funName has no address, it is equivalent to enum function void() funName = 
{};
   &funName become a NOOP and is deprecated, for compatibility reasons. It is
not ambiguous as funName has no address anyway.

Dang, I hadn't thought of the typeof(funName) issue.


On further thought, if funName is a property, then typeof(funName) should give the return type of the property, not the 'function' type.

Reply via email to