Detector for unused variables

Regan Heath regan at netmail.co.nz
Wed Aug 1 03:33:03 PDT 2012


On Mon, 30 Jul 2012 18:41:51 +0100, Jonathan M Davis <jmdavisProg at gmx.com>  
wrote:

> On Monday, July 30, 2012 18:50:08 Andrej Mitrovic wrote:
>> On 7/30/12, Namespace <rswhite4 at googlemail.com> wrote:
>> > IMO something like this should be integrated into the D compiler.
>>
>> As long as it's togglable via a compiler switch. :)
>
> Walter doesn't like compiler switches like that, and he doesn't like it  
> when
> the compiler complains about unused variables. So, I wouldn't expect it  
> to
> happen, but anyone's free to create a pull request and try.

Indeed.  IIRC Walter's rationale on things like this has always been that  
they belong in 3rd party tools.  It's why the DMD front end is available  
for use, so people can create tools like this, syntax highlighters,  
re-formatters, dependency tree diagrams, or... you name it.

R

-- 
Using Opera's revolutionary email client: http://www.opera.com/mail/


More information about the Digitalmars-d-learn mailing list