www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 5621] New: speller.c: enhancement request

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5621

           Summary: speller.c: enhancement request
           Product: D
           Version: D1 & D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: ibuclaw ubuntu.com



The current implementation of the spell checker (as far as I can tell) always
finds the nearest match to the incorrectly spelled symbol.

So the following example:

struct S2 {}
struct S10 {}

void main()
{
    S10 a = S();
}


Will emit the error:
spell.d(6): Error: undefined identifier S, did you mean struct S2?


Whereas it would be an improvement in these cases if it were to suggest the lhs
type instead.

Regards

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 20 2011
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5621


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla digitalmars.com
           Severity|normal                      |enhancement



16:08:00 PST ---
Implementing this would be difficult as it requires top-down type inference,
whereas the semantic analysis is all done bottom-up.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 03 2011