Scoped local variables

Jason House jason.james.house at gmail.com
Fri Dec 7 06:52:07 PST 2007


I'm having my code crash when I add in scope variables.  While it works in some cases, it doesn't in others.  I've whittled down my current problem to code that looks like:

unittest{
  scope T t = new T();
}

"T" has a bunch of arrays that it allocates and fills when it's constructed.  I'm currently confused how this code would cause a crash.  Any insights would be much appreciated.


More information about the Digitalmars-d-learn mailing list