Bug 12483 – Some type tooltips in the generated html docs

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-03-27T14:46:30Z
Last change time
2024-12-13T18:18:55Z
Assigned to
No Owner
Creator
bearophile_hugs
Moved to GitHub: dmd#18805 →

Comments

Comment #0 by bearophile_hugs — 2014-03-27T14:46:30Z
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: http://tomasp.net/blog/types-and-math.aspx/index.html
Comment #1 by robert.schadek — 2024-12-13T18:18:55Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18805 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB