Re: Actual libtool support routines

Bram Moolenaar <[email protected]>
Newsgroups gmane.comp.tools.aap.devel
Message-ID <[email protected]>
Adriaan de Groot wrote:

> On Friday 29 August 2003 12:28, Bram Moolenaar wrote:
> > Adriaan de Groot wrote:
> > > :import should work a lot like :include, but only search in system
> > > : places.
> >
> > variables.  This would be important when doing the ":import" from
> > several recipes in a recipe tree.  You wouldn't want to libtool module
> > to use the scope of several recipes, do you?
> 
> :import should be like :include {once} with no path component. It should 
> search for the module in some standard places (and no others). The module 
> should have its own scope (or possibly a shared _module scope if that's too 
> hard to implement) faily high up in the rpstack.

It's probably a good idea to give each ":import"'ed module its own
scope, so that it doesn't need to worry about names of variables used
elsewhere.  But I think this scope doesn't need to be exposed to other
recipes.  If some things need to be available elsewhere the module can
set values in the toplevel scope.  If some things need to be shared with
other modules (even though that sounds unlikely at this time) a new
scope can be created for it.

This is also relatively easy to implement, because the scope of the
imported recipe doesn't need to be added to the stack of scopes.

> > Are you going to make that libtool module?  Then we also need the
> > ":import" command.  Earn a few more Zimbu award points!
> 
> The libtool module I've already sent in, though it might need some more 
> polishing and documenting. I'll do :import.

Great.  Then I can continue making it easier to download and install Aap
and Agide.  "aap --install agide" is now almost working.

-- 
Microsoft: "Windows NT 4.0 now has the same user-interface as Windows 95"
    Windows 95: "Press CTRL-ALT-DEL to reboot"
Windows NT 4.0: "Press CTRL-ALT-DEL to login"

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///          Creator of Vim - Vi IMproved -- http://www.Vim.org          \\\
\\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
 \\\  Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html  ///


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.