On Friday, 30 September 2022 at 21:11:48 UTC, solidstate1991 wrote:
Let's say I have a class or an interface with a function, and I want to pass that to a template to generate another function (in this case one that passes it to a scripting engine, and allows it to be called from there).


Maybe this will help you:
```d
template Bar(T)
{
  void fun() {}
}

class Foo(T)
{
  mixin Bar!T b;
  alias fun = b.fun;

  void test()
  {
    fun();
  }
}
```
SDB@79

Reply via email to