www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Re: Suggestions for multiple class members with the same name

Michiel Helvensteijn Wrote:

 But I believe that in both cases the idea is more trouble than it's worth.
 Can you give an example in which it might be useful?

Example: When you are using templates to bind someone else's native classes to script classes and nobody calls their methods a1 a2. See minid binding library for code example.
Aug 15 2008