[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Can a Lua module find out whether it is being required or dofiled?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 23 Sep 2015 11:36:13 -0300
Note that you cannot tell whether a module is being required or
called after loadfile, because you can pass anything in the call:
% lua
> f=loadfile"m.lua"
> f("m","./m.lua")
args m ./m.lua