So I am trying to teach my self how to use Lua and I'm wondering two things.
1. Is there a way I can use tolk.dll from Lua.
2. What is better to use a print statement or io.write?
1MeNca7h6m8du4TV3psN4m4X666p6Y36u5m
You are not logged in. Please login or register.
AudioGames.net Forum → Developers room → Wondering about Lua
So I am trying to teach my self how to use Lua and I'm wondering two things.
1. Is there a way I can use tolk.dll from Lua.
2. What is better to use a print statement or io.write?
You can probably do so by using a LuaJIT version using FFI by binding the relevant functions to corresponding lua functions. Maybe the Tolk developer will appreciate your efforts and deploy the lua bindings together with the actual Tolk library as well, just contact him if he's interested or maybe he already knows about existing bindings.
About print() and write(), print() is designed to work for debugging-purposes only, automatically resolving custom data types to be more informational and thus only prints to STDOUT stream, whereas io.write() can also write to other streams and doesn't resolve custom data types, so you'll have to do this on your own.
Best Regards.
Hijacker
AudioGames.net Forum → Developers room → Wondering about Lua
Generated in 0.016 seconds (44% PHP - 56% DB) with 12 queries