lua-users home
lua-l archive

_PACKAGE in a nested module

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


If you create a module, call it peanut, with a nested module, say butter. And then print(peanut.butter._PACKAGE) the answer you get is "peanut." with the trailing period.
I would expect the answer to just be "peanut".
Similarly, if you define a module, peanut.butter.sandwich, and then print(peanut.butter.sandwich._PACKAGE) you get "peanut.butter.".
Is that the intended behavior?
Matt

AltStyle によって変換されたページ (->オリジナル) /