https://tour.dlang.org/tour/en/gems/uniform-function-call-sy...
In particular, here is another explanation of the scope feature presented in the LuaD article:
https://tour.dlang.org/tour/en/gems/scope-guards
extern "C" { void foo(); }
extern (C++) int foo(int i, int j, int k);
But, if you don't want C++, then [1]:
extern (C) int foo(int i, int j, int k);
[0] http://dlang.org/spec/cpp_interface.html
[1] http://dlang.org/spec/interfaceToC.html
extern(C) { void foo(); }
https://jugad2.blogspot.in/2016/09/calling-simple-c-function...
https://tour.dlang.org/tour/en/gems/uniform-function-call-sy...
In particular, here is another explanation of the scope feature presented in the LuaD article:
https://tour.dlang.org/tour/en/gems/scope-guards