struct OnClickListener { string id; } class BaseView { void onCreate() {writeln(getSymbolsByUDA!(typeof(this), OnClickListener).stringof);} }class MyView : BaseView { @OnClickListener("okButton") void onOkButtonClick() { writeln("Hello world!"); } }
Hello, I trying to add custom attribute OnClickListener, the
problem is that typeof always return BaseView type instead of
MyView.
- typeof(this) return wrong type Andrey via Digitalmars-d-learn
- Re: typeof(this) return wrong t... Stefan Koch via Digitalmars-d-learn
- Re: typeof(this) return wro... Andrey via Digitalmars-d-learn
- Re: typeof(this) return... Basile B. via Digitalmars-d-learn
- Re: typeof(this) re... Andrey via Digitalmars-d-learn
- Re: typeof(thi... Andrey via Digitalmars-d-learn
- Re: typeof(this) re... Adam D. Ruppe via Digitalmars-d-learn
- Re: typeof(this) return wrong t... Ali Çehreli via Digitalmars-d-learn