User Defined Attributes

dennis luehring dl.soluz at gmx.net
Tue Nov 6 09:42:08 PST 2012


Am 06.11.2012 18:32, schrieb David Nadlinger:
> On Tuesday, 6 November 2012 at 17:00:27 UTC, Walter Bright wrote:
>> Ok, I ask again, what use case for a UDA is there for function
>> parameters? (Note that IDL isn't it, as D already has enough
>> parameter attributes to support IDL.)
>
> What »IDL« are you referring to here? At least as far as I am
> aware, IDL usually just refers to an »interface definition
> language« in general, so I'm not quite sure what you mean if you
> are talking about »enough to support IDL«.
>
> Actually, the Thrift IDL would be a perfect example of how
> attributes on parameters can be useful. A simple service
> definition in a .thrift could look like this:

http://svn.apache.org/repos/asf/thrift/trunk/tutorial/tutorial.thrift



More information about the Digitalmars-d-announce mailing list