Advertisement
tinyevil

Untitled

Jul 6th, 2018
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | None | 0 0
  1. // core.jf
  2. import bar from maths;
  3.  
  4. namespace foo{
  5.     struct Foo{}
  6.    
  7.     function ffoo():Bar;
  8. }
  9.  
  10. // maths.jf
  11. import foo from core;
  12.  
  13. namespace bar{
  14.     struct Bar{}
  15.    
  16.     function fbar():Foo;
  17. }
  18.  
  19. // VVVVVVVV
  20. // program.jf
  21. namespace core{
  22.     import maths.bar;
  23.  
  24.     namespace foo{
  25.         struct Foo{}
  26.        
  27.         function ffoo():Bar;
  28.     }
  29. }
  30.  
  31. namespace maths{
  32.     import core.foo;
  33.  
  34.     namespace bar{
  35.         struct Bar{}
  36.        
  37.         function fbar():Foo;
  38.     }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement