Hey Adam! Thanks again for your web.d!

My introspection class went along quite well, thanks in no small part to you! ;)
implementing INotifyPropertyChanged now and .. data binding next! :)


"Adam Ruppe"  wrote in message news:itnfqc$kg2$1...@digitalmars.com...

Indeed, this would be nice. I want it for my web.d thing.

But, as far as I know, there's no way to get it at all right now.

A while ago, I tried to add it to the compiler. The problem is
protection is stored with the symbol itself, not the thingy returned
by getMember - that's always considered public by the compiler.

So if you pass the actual Class.member, it's easy to see if it's
public or not, but the getMember doesn't say.

(Which is why it compiles in the first place... otherwise the private
members would give visibility errors when you tried to use it there.)


In the compiler, if there was an informational field for protection
added, the trait could be made to work, but I haven't gotten
around to trying to patch that yet and afaik no one else is interested
enough to look either.

Reply via email to