Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace foo{
- import bar;
- // this Bar can be from bar
- // thats the point of imports
- alias Foo = Bar;
- }
- namespace foo{
- // the question is, can this Bar be from bar?
- alias Foo = Bar;
- import bar;
- }
- // or, alternatively, we can completely disallow imports
- // after the first non-import directive
- // that interferes with macros, because it is not possible
- // to do things like this anymore (Debug can be from foo, so
- // first name lookup happens before all imports are presented):
- import foo;
- static_if ( Debug ) {
- import debug;
- }
Add Comment
Please, Sign In to add comment