www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - UDAs on function calls or return locations?

Hi all,

Is it possible to add a UDA onto either the function call, and 
detect its present? or onto the variable that the result will go 
to?

E.g.
auto int x = function()  UDA;

     int function() {
       if (hasUDA(call_site)) { ... }
     }

or

 UDA int y = function();

     int function() {
       if (hasUDA(RESULT)) { ... }
     }

Kind regards,
Mike Brown
Jun 14