Should this be a compiler error?

2009-06-07 Thread Mike L.
le to call the print(), though, and it just prints garbage. Should this be a compiler error?

Re: Should this be a compiler error?

2009-06-08 Thread Jason House
wtf.p.print() is called, x has gone out of scope. It's still possible to > call the print(), though, and it just prints garbage. Should this be a > compiler error?

Re: Should this be a compiler error?

2009-06-08 Thread grauzone
Either way, you should submit a bugzilla entry. Why should he file a bug report for something that's not a bug?

Re: Should this be a compiler error?

2009-06-08 Thread Steven Schveighoffer
Mike L. Wrote: > The following code compiles fine for me with dmd 1.043: [snip] > Should this be a compiler error? No, because what you are asking for requires full escape analysis (that is, determining if a variable escapes its scope). In order to do that, dmd needs full sources