From: Sven R. <rei...@ma...> - 2002-11-19 15:56:25
|
On Tue, 19 Nov 2002, Baptiste Lepilleur wrote: > Don't hesiate to express your doubt, I've never eaten anyone ;-) ok :) > > > are starting to look good :) > Indeed. The next step will be dealing with scope I guess. I'll try > finalizing the vc6addin before though. There is no better test than > real-life usage ;-). Fine with me. I'm currently quite busy with my thesis, so my input will be minimal for the next week or so. However, I'll think about a simple QT interface. About the scope: I assume you refer to another variable with the same name being defined in a subscope. This could be dealt with by - detecting such a variable; - renaming that "inner variable" to some silly name; - renaming the outer variable; - restoring the original name for the inner variable. (However, even if we don't deal with this case, it won't break the program.) The only thing we need to be careful about is the outer variable appearing in the initializer of the inner variable. I still have to check carefully if that is correct code. I mean something like this: { double x = 3.14; { int x = std::floor(x); } } In this case, the argument to floor is really the outer variable. Cheers, Sven. -- Sven Reichard Dept. of Math. Sci. University of Delaware rei...@ma... |