Lignum, on 28 September 2014 - 10:21 AM, said:
The problem is that shell is nil inside an API because there could be multiple shells running. You need to find a way to provide your API with the current shell. In this case you might as well pass the API's name over instead of a shell.
How do you mean? Can you give an example?
GlassOS, on 28 September 2014 - 10:31 AM, said:
I don't see how you could look for your API maybe with fs someone could figure a cool file search program
Uhmm.. Are you sure you know what I meant? I'm not trying to locate my file, I'm trying to figure out how to get it's global name.
For example, when you load a file called 'foo' and it has a function called bar you call the function by using foo.bar(), but if someone were to call the file something else like blah then you would have to use it as blah.bar().