Re: Using anonymous namespace vs 'static'

2012-11-21 Thread netzen
On Wednesday, November 21, 2012 12:06:32 AM UTC-5, Robert O'Callahan wrote: > On Wed, Nov 21, 2012 at 4:07 PM, wrote: > > Actually that seems quite easy. For example in FrameLayerBuilder.cpp I can > add gMaskLayerImageCache to the watch window with no problems, even though > it's in mozilla::{ano

Re: Using anonymous namespace vs 'static'

2012-11-20 Thread netzen
That's not exactly correct. In VS2010 you can have symbols in your watch window that are in an anonymous namespace and you can put breakpoints on them. For example: namespace { int g = 42; } In your Watch window, add g, and you can see 42. If you have an anonymous namespace inside of anothe

Re: Using anonymous namespace vs 'static'

2012-11-20 Thread netzen
> Even worse, in Visual Studio 2010 (not sure about 2012), > you can't set a breakpoint on an anonymous-namespace symbol > *at all*. And we can't submit patches to fix that, either :-). Maybe there's a specific case where you can reproduce this, but in general I've always been able to set break