bayrell / BayLang

BayLang compiler source code
https://bayrell.org/ru/docs/baylang
Apache License 2.0
4 stars 0 forks source link

apply function #132

Closed ildar-ceo closed 8 months ago

ildar-ceo commented 9 months ago

Вызов анонимных функций

fn f = method this.onRefresh;
Callback f = new Callback(this, "onRefresh");
Callback f = new Callback(static::getClassName(), "onRefresh");

Vector args = [];
rtl::apply(f, args);
await rtl::applyAsync(f, args);