Attributes on parameters in functions.
TheFlyingFiddle via Digitalmars-d
digitalmars-d at puremagic.com
Sat Oct 31 07:09:37 PDT 2015
On Saturday, 31 October 2015 at 12:45:13 UTC, Jacob Carlborg
wrote:
> On 2015-10-30 22:28, TheFlyingFiddle wrote:
>> In other languages that have Attributes (Java and C# atleast)
>>
>> I can do stuff like this: (Java)
>>
>> //com.bar.java
>> interface Bar { /*stuff*/ }
>> //com.foo.java
>> class Foo
>> {
>> Foo(@Bar int a)
>> {
>> //some stuff
>> }
>> }
>>
>>
>> I don't seem to be able to do this in D. That is I cannot do
>> this:
>
> https://github.com/D-Programming-Language/dmd/pull/4783
This looks very promising I hope something like this get's pulled
eventually.
More information about the Digitalmars-d
mailing list