diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-11-10 16:28:37 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-11-10 16:28:37 -0800 |
commit | aec68ea8a285bdaa30af3c4edac7986e733a6f67 (patch) | |
tree | eaa63adb786db1bf80dd3664e27c0076d15008cc /src/linit.c | |
parent | 82ffc6e20c5185ea9b4e622401660fa7f075a0aa (diff) | |
download | teliva-aec68ea8a285bdaa30af3c4edac7986e733a6f67.tar.gz |
no, initialize globals in symmetry with functions
Current plan: definitions can have arbitrary code. They'll be loaded lazily when a specific name is invoked but has no binding. Implications: - It'll be the responsibility of the code to define the name it's saved in. "Phony" names will result in some fragments of code repeatedly executing. - Assigning a global to nil is a way to retrigger its initialization the next time it's needed. I'm not sure how I feel about this sort of incompatibility with Lua. I suppose we could avoid it by also tracking what definitions have already been loaded in a run.
Diffstat (limited to 'src/linit.c')
0 files changed, 0 insertions, 0 deletions