|
|
|
Re: Execution Environment imported by default [message #1078275 is a reply to message #1078197] |
Fri, 02 August 2013 19:49 |
Andres Ispani Messages: 6 Registered: August 2013 |
Junior Member |
|
|
Nevermind, I just read here that it's not possible... I'll just duplicate all definitions.
What I cannot find is if it's possible to access global variables defined on a module outside the Execution Environment.
Say I have a lua module (on a specific project, not a part of the Execution Environment) that does something like:
SomeClass={} --global variable
SomeClass.__index=SomeClass
function SomeClass:create()
-- etc
end
The module is then used just using 'require "SomeClass"', (instead of 'SomeClass = require "SomeClass")
How would I comment this to enable auto completion?
I tried "-- @field [parent=#global] #SomeClass SomeClass" but (as the documentation also says), this only works inside the module, and not if the module is required
[Updated on: Fri, 02 August 2013 20:59] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03598 seconds