Advertisement
tinyevil

Untitled

Jul 6th, 2018
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. namespace outter{
  2.  
  3. function foo(){}
  4.  
  5. namespace inner{
  6. invoke foo();
  7. }
  8.  
  9. }
  10.  
  11.  
  12. ------------
  13.  
  14. (c) => {
  15. let foo = c->create_function("foo");
  16. foo->set_defintion(...);
  17. ...
  18.  
  19. let inner = c->create_namespace("inner");
  20. inner->set_defintion((c) => {
  21. c->embed(foo());
  22. });
  23.  
  24. ...
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement