comparison src/luan/LuanTable.java @ 1283:503bde9a7c80

add luan.require() and table.call()
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 21 Dec 2018 09:12:09 -0700
parents 9fa8b8389578
children 1b46c8e6c647
comparison
equal deleted inserted replaced
1282:2531942abaf3 1283:503bde9a7c80
510 fn.call(luan,new Object[]{this}); 510 fn.call(luan,new Object[]{this});
511 } 511 }
512 super.finalize(); 512 super.finalize();
513 } 513 }
514 514
515 public Object call(String fnName,Object... args) throws LuanException {
516 LuanFunction fn = Luan.checkFunction(get(fnName));
517 return fn.call(luan,args);
518 }
515 } 519 }