[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.4 feature request: package.getloadmode
- From: Sean Conner <sean@...>
- Date: Sun, 1 Apr 2018 17:09:15 -0400
It was thus said that the Great Dirk Laurie once stated:
> We have seen various ways on this list for package code to decide
> whether it was invoked by require or load/loadfile/dofile, and whether
> stdin is an interactive terminal. All have a strongly
> implementation-dependent flavour. It would be nice to have a built-in
> function for this purpose.
One function or two? Because the two seem orthogonal to me.
-spc