__FUNCTION__

Derek Parnell derek at psych.ward
Sat Feb 28 14:24:44 PST 2009


On Sat, 28 Feb 2009 12:30:35 -0500, Jarrett Billingsley wrote:

> Can we get this please?  It's so simple and would be terribly useful.

void foo()
{
    writefln(__FUNCTION__);
}

void foo(int x)
{
    writefln(__FUNCTION__);
}

-------------------

module bar;
void foo()
{
    writefln(__FUNCTION__);
}

----------------

class One
{
  void foo()
  {
     writefln(__FUNCTION__);
  } 
}


struct Two
{
  void foo()
  {
     writefln(__FUNCTION__);
  } 
}

--------------

Any problems so far?
    
-- 
Derek Parnell
Melbourne, Australia
skype: derek.j.parnell



More information about the Digitalmars-d mailing list