Script Meta Information
WolfGang Senizen
While I suspect allot of this is "to come" with the improved debugging features that have been "implied/promised" It would also be nice for scripts to be able to access some meta information about themselves.
This in part came up during discussion of the new event system (RFC) on possible issues with
os.clock()
and ll.GetTIme()
So I proposed a table with functions and or values for getting info about the script itself
e.g
type llscriptmeta = {
compile : {
time: number, -- Unix timestamp of script compile
by: uuid, -- Who saved the script
with: string -- Some version string of the compiler
},
startTime: number, -- Unix Timestamp of script start (resets with ll.ResetScript)
getUpTime: () -> number. -- Like ll.GetTime but with no luau caveats(resets with ll.ResetScript)
bytecodeSize: number, --- Size of the bytecode in bytes
...
}
Log In