[Bf-committers] vc and variable declaration

stapfx at gmx.de stapfx at gmx.de
Mon Mar 13 19:17:33 CET 2006


>vc do not like declaration of variabiles inside a function

it's okay to declare variables inside a function as long
as you do it at the beginning of a scope
example:

void function()
{
  int okayToDeclareHere;
  somecode();
  {
    int okayToDeclareHereToo;
  }
}

-- 
Echte DSL-Flatrate dauerhaft für 0,- Euro*!
"Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl


More information about the Bf-committers mailing list