getAttr method
Michiel Helvensteijn
nomail at please.com
Fri Feb 1 08:36:12 PST 2008
bearophile wrote:
>>and it can be useful sometime.
>
> Can you show one or more (practical) examples of situations where it can
> be useful?
PHP has something similar. These sorts of features seem to be used to make
classes do magic things and be harder to understand. But just this feature
for D? Well, I suppose you could use it to print something like:
"Test has no function called 'hello', silly programmer!"
Ehm.. at runtime, it would seem.
;-)
--
Michiel
More information about the Digitalmars-d
mailing list