www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Workaround to 3051? (Passing alias to member function don't work)

reply "Nick Sabalausky" <a a.a> writes:
Anyone know a workaround to #3051 - "Passing alias to member function does 
not work"? (Hopefully besides just making "fun" either static or global)

http://d.puremagic.com/issues/show_bug.cgi?id=3051
Oct 25 2011
parent Jacob Carlborg <doob me.com> writes:
On 2011-10-26 05:33, Nick Sabalausky wrote:
 Anyone know a workaround to #3051 - "Passing alias to member function does
 not work"? (Hopefully besides just making "fun" either static or global)

 http://d.puremagic.com/issues/show_bug.cgi?id=3051

It depends on what you want to do with the alias. Pass it as a pointer, ref, string or similar. -- /Jacob Carlborg
Oct 25 2011