[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: dot-d
- From: Sean Conner <sean@...>
- Date: Mon, 15 May 2023 04:12:43 -0400
It was thus said that the Great Soni They/Them L. once stated:
> Hello,
>
> We are wondering, if it would be possible to support foo.lua.d/bar.lua
> for require("foo.bar").
>
> See, Linux really really wants file-dir duality. You can tell by all the
> .d/'s everywhere. Unfortunately POSIX forbids file-dir duality. So .d/'s
> everywhere is the best we're gonna get. But it'd be nice to see them
> more widely supported.
I'm not exactly sure what you are asking for, but this layout does work
for me:
foo.lua
foo/
bar.lua
and the Lua code:
local foo = require "foo"
local bar = require "foo.bar"
works. It even works for shared objects:
foo.so
foo/
bar.so
Unless you can go into more details about what you are trying to achieve.
-spc
- References:
- dot-d, Soni "They/Them" L.