Docs: Section on local variables

Jonathan M Davis jmdavisProg at gmx.com
Thu Apr 19 18:00:11 PDT 2012


On Friday, April 20, 2012 02:53:25 Andrej Mitrovic wrote:
> Can I remove this section from the D docs, in functions? :
> 
> "
> Local Variables
> It is an error to use a local variable without first assigning it a
> value. The implementation may not always be able to detect these
> cases. Other language compilers sometimes issue a warning for this,
> but since it is always a bug, it should be an error.
> 
> It is an error to declare a local variable that is never referred to.
> Dead variables, like anachronistic dead code, are just a source of
> confusion for maintenance programmers.
> "
> 
> I don't think this will ever be implemented, or that it should be for
> that matter.

Ask in the main list. My inclination would be that it should be removed,
but the main D list is the place to discuss it.

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list