Attributes on parameters in functions.
Jacob Carlborg via Digitalmars-d
digitalmars-d at puremagic.com
Sat Oct 31 05:45:12 PDT 2015
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
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list