3 ms·
> Quick test: if you create a new namespace and import another file within that namespace, do its contents end up in that namespace? Suppose in my program "hel
by jancsika 8y ago
> Quick test: if you create a new namespace and import another file within that namespace, do its contents end up in that namespace?
Suppose in my program "hello" I import "foo"-- which depends on foo/buggy.dll-- and "bar"-- which depends on bar/buggy.dll.
foo/buggy.dll is a helper library that computes a correct value for "foo" but would crash if used with "bar."
bar/buggy.dll is foo/buggy.dll with a single late-night bug fix for the crasher which introduces a regression that will crash if used with "foo".
So does "contents ending up in that namespace" mean that "hello" will run without crashing/clashing?