Oh, I always assumed that this bit would go somewhere in the main script. In that case, yes, the "foreach version" wouldn't really be useful since you would need the scripts it checks to have run at least once before.
Regarding using file_to_map() on scripts, that would have been very interesting, but it doesn't seem to be working as expected:
The line that was read is a comment in zlib.ash on line 152...
Regarding using file_to_map() on scripts, that would have been very interesting, but it doesn't seem to be working as expected:
Code:
> ashq string[int] t; file_to_map("zlib.ash",t); foreach i,s in t print(s);
X - gender (-1=male, 1=female)