What have you done with UDAs?
Jonas Drewsen via Digitalmars-d
digitalmars-d at puremagic.com
Thu Jun 25 02:13:23 PDT 2015
On Monday, 22 June 2015 at 20:29:15 UTC, Jonas Drewsen wrote:
> On Monday, 22 June 2015 at 19:09:40 UTC, weaselcat wrote:
>> I never seem to use them for anything, has anyone else done
>> anything interesting with them?
>
> I use a few in the deadcode editor e.g.:
>
> Function can be called by a menu entry:
> @MenuItem("Edit/Copy")
>
> Function can be called by a shortcut:
> @Shortcut("<shift> + <f10>")
>
> Function should run in a fiber when called:
> @InFiber
Just remembered, I also use it for the animation system to tell
what can be animated (modified by proxy) e.g:
@Bindable()
{
CSSPositionMix _position;
CSSScaleMix _width;
CSSScaleMix _height;
CSSVisibility _visibility;
...
}
More information about the Digitalmars-d
mailing list