www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12483] New: Some type tooltips in the generated html docs


           Summary: Some type tooltips in the generated html docs
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: bearophile_hugs eml.cc

--- Comment #0 from bearophile_hugs eml.cc 2014-03-27 14:46:30 PDT ---
In documentation produced by dmd with the -D switch, I suggest to generate one
pop-up tooltip for every "auto" keyword present in the html page, that shows
what's the type that gets inferred by the auto. This helps keep the
documentation short but fully clear.

Even better is to generate a tooltip everywhere a type is inferred:

static foo() { return 0; }

Here foo() has an inferred return type despite there is no "auto".

The inferred return type is useful for lambdas too.

You can see similar tooltips in the source code in pages like:

Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 27 2014