how to reflect on function attributes

Jonathan M Davis jmdavisProg at gmx.com
Wed Jun 5 00:02:18 PDT 2013


On Wednesday, June 05, 2013 08:52:35 lomereiter wrote:
> This doesn't work when the method is marked as @property. Any
> idea why is that so?
> 
> On Wednesday, 5 June 2013 at 02:19:38 UTC, Jonathan M Davis wrote:
> > is(typeof(A.func) == const)
> > 
> > - Jonathan M Davis

I don't know. My first guess would be that it thought that it was calling it 
except that it's being referenced by the type, not by an instance, so that 
doesn't really make sense.

- Jonathan M Davis


P.S. Please don't top-post. It makes it harder to follow posts and is 
generally considered bad newsgroup etiquette.


More information about the Digitalmars-d-learn mailing list