User Defined Attributes

Walter Bright newshound2 at digitalmars.com
Tue Nov 6 11:12:49 PST 2012


On 11/6/2012 10:42 AM, Max Samukha wrote:
> C# allows custom attributes on function parameters, including the return value.
> Actually, it allows custom meta-data everywhere. See a use case here
> http://msdn.microsoft.com/en-us/library/system.runtime.interopservices.marshalasattribute.aspx.

Thank you. Under the "Remarks" section they give some good examples.

As for the return value attributes, I think that can be handled by attributing 
the function symbol itself, as it can only have one return type.



More information about the Digitalmars-d-announce mailing list