www.digitalmars.com         C & C++   DMDScript  
Archives

D Programming
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.ide
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger
D.gnu
D

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript
electronics


digitalmars.D.learn - Getting overloads for non-member functions

reply "Simen kjaeraas" <simen.kjaras gmail.com> writes:
Is there a way to get a list of overloads for a function name in D?

For member functions, there's __traits( getVirtualFunctions, ... ), but  
that don't work for free functions.


-- 
Simen
Jan 14 2010
parent Lutger <lutger.blijdestijn gmail.com> writes:
On 01/14/2010 11:38 PM, Simen kjaeraas wrote:
 Is there a way to get a list of overloads for a function name in D?

 For member functions, there's __traits( getVirtualFunctions, ... ), but
 that don't work for free functions.

I'm afraid there is no way. See also this blog: http://kirkmcdonald.blogspot.com/2007/07/inadequacies-of-traits.html
Jan 15 2010