[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Suggestion for Lua 5.3.0 -- require search paths (and mathlib comments)
- From: Petite Abeille <petite.abeille@...>
- Date: Mon, 7 Apr 2014 21:02:27 +0200
On Apr 7, 2014, at 8:51 PM, Philipp Janda <siffiejoe@gmx.net> wrote:
> lua < file.lua
'lua - < file.lua’ I guess, but yes, there is no file in that case.
>
> More importantly, IMHO, this trick also fails if sym- or hard links to the Lua script are involved ...
> And this is probably why a `require_here` will always be a hack: There is no unique file location. There is data and zero or more file paths that refer to that data.
Perhaps. And yet, it’s a useful, practical mechanism when one does indeed deal with regular files. Let not make perfection the enemy of the good.
- References:
- Re: Running multiple threads in a lua state, Coroutines
- Re: Running multiple threads in a lua state, Luiz Henrique de Figueiredo
- Re: Running multiple threads in a lua state, Coroutines
- Re: Running multiple threads in a lua state, Sean Conner
- Re: Running multiple threads in a lua state, Coroutines
- Re: Running multiple threads in a lua state, Sean Conner
- Re: Running multiple threads in a lua state, Rena
- Re: Running multiple threads in a lua state, Coroutines
- Suggestion for Lua 5.3.0 -- require search paths, tonyp
- Re: Suggestion for Lua 5.3.0 -- require search paths, Petite Abeille
- Re: Suggestion for Lua 5.3.0 -- require search paths, Chris Emerson
- Re: Suggestion for Lua 5.3.0 -- require search paths, steve donovan
- Re: Suggestion for Lua 5.3.0 -- require search paths (and mathlib comments), Tony Papadimitriou
- Re: Suggestion for Lua 5.3.0 -- require search paths (and mathlib comments), Petite Abeille
- Re: Suggestion for Lua 5.3.0 -- require search paths (and mathlib comments), Philipp Janda