[View] [Edit] [Lock] [References] [Attachments] [History] [Home] [Changes] [Search] [Help]
test[NLua8] 00 basics
"Ensure the hosting environment has NLua8 support"
Smalltalk nativeObjectAt: #NLua8 ifAbsent: [
self error: 'Missing support for NLua8'
].
self
require: #NLua8
in: #('u8:aleReimondo/NLua8/library/NLua8.st.lua').
"Report executable information"
| folder assembly location |
assembly := ((Luanet <@ 'System.Reflection') @ #Assembly) #_GetExecutingAssembly.
self print: 'assembly=', (assembly basicAt: #FullName).
location := assembly basicAt: #Location.
self print: 'location=',location.
folder := ((Luanet <@ 'System.IO') @ #Path) #_GetDirectoryName: location.
self print: 'folder=',folder.