Re: Language module support added
Adriaan de Groot <adridg-FlD2LfDziEhmR6Xm/[email protected]>
| Newsgroups | gmane.comp.tools.aap.devel |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 25 Sep 2003, Bram Moolenaar wrote: > - The ":import" command (implemented by Adriaan de Groot). Coo, thnax. > - The ":import" command searches various "modules" directories for a > module. All found modules are loaded in the same scope. The modules > must take care of not defining things that have already been done by > checking for the did_import_<name> variable. OK, excellent. I already had some coverage for that in the code, why do you want to place the burden on the module writers? Is it because the file-has-been-read data stores absolute filenames? I haven't looked at the code yet, but is there overlap between the modules dirs and the directories that are scanned for .aap files on startup? that you make either the modules or the dir scan superfluous, i think. > - I named the "d" module "dlang", to avoid a name conflict with a > variable called "d". There can't be a variable and a scope with the > same name. Could you do some magic to prevent that overlap? I rather liked the m_d scope name or _module_d. > Hopefully I didn't break the already working code that others made. > Please let me know what should be improved! I'll take a stab at it tomorrow. -- Adriaan de Groot adridg-FlD2LfDziEhmR6Xm/[email protected] Kamer A6020 024-3652272 GPG Key Fingerprint 934E 31AA 80A7 723F 54F9 50ED 76AC EE01 FEA2 A3FE http://www.cs.kun.nl/~adridg/research/ ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf