We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c904380 commit f440129Copy full SHA for f440129
fnl/nfnl/module.fnl
@@ -53,11 +53,19 @@
53
This technique helps you have extremely reloadable modules through Conjure.
54
You can reload the entire file or induvidual function definitions and the
55
changes will be reflected in all other modules that depend on this one
56
- without having to reload the dependant modules."
+ without having to reload the dependant modules.
57
+
58
+ If the currently loaded value _and_ the base value are both nil then an empty
59
+ table is used by default."
60
61
(let [loaded (. package.loaded mod-name)]
- (if (= (type loaded) (type base))
62
+ (if
63
+ (and (= nil loaded base))
64
+ {}
65
66
+ (= (type loaded) (type base))
67
loaded
68
69
base)))
70
71
M
lua/nfnl/module.lua
0 commit comments