- Subject: A simpler autoload
 
- From: Marko Mahnič <mmarko.dfg@xxxxxxx>
 
- Date: Sat, 29 Mar 2003 10:18:01 +0100
 
Hello!
Here is a short macro that might help when autoloading files.
You write the filename only once, ant then list all the macros that
you wish to autoload from it.
Marko
%!% \usage{Void autoload_file (String file, String macro, String macro,
...)}
define autoload_file ()
{
   variable file = "", macro = "", nmacros = _NARGS-1;
   _stk_roll (-(nmacros + 1));
   file = ();
   loop (nmacros)
   {
      macro = ();
      autoload (macro, file);
   }
}
site.sl might be much simpler with this
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
  [2003 date index]
  [2003 thread index]
  
  [Thread Prev] [Thread Next]
      
  [Date Prev] [Date Next]