Summary: func.stringof with default args
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Manu <> 2012-05-16 00:54:13 PDT ---
func.stringof is the only existing way to deeply introspect function calling
information past it's argument types (I need argument names, default
arguments), so I rely on this very heavily.

There are some annoying cases where it doesn't work as expected though:

struct Colour
  ubyte a,r,g,b;

  immutable Colour white = Colour(255,255,255,255);

void func(Colour c = Colour.white)

func.stringof == "void func(Colour c = white)"
Error: undefined identifier white

For some reason the scope Colour. was removed from the initialiser.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to