Re: dllobject/libobject

Bram Moolenaar <[email protected]>
Newsgroups gmane.comp.tools.aap.devel
Message-ID <[email protected]>
Lars Ivar Igesund wrote:

> ----- Original Message ----- 
> From: "Bram Moolenaar" <[email protected]>
> > I think the simplest is to explicitly mention the top scope:
> > 
> > _top.D_OBJSUF = $OBJSUF
> > _top.D_DLLOBJSUF = $OBJSUF
> > _top.D_LIBOBJSUF = $OBJSUF
> > _top.D_LTOBJSUF = $OBJSUF
> 
> This don't work, as far as I can see. The .sob suffix is
> still used. The D compiler actually accepts the suffix, but
> changes it to obj, meaning that aap don't find the object
> files which it expects to have the .sob suffix.

I now notice that the way that Adriaan has implemented ":import" it
uses the scope of the module for the _top scope.  Thus you have no way
to access the original _top scope.

I'm glad we discovered the drawback of this method so quick.  Now we can
think of a better solution...  Perhaps simply setting the _top scope to
the original _top scope?  Any other scope should not matter for an
imported recipe.

-- 
How To Keep A Healthy Level Of Insanity:
14. Put mosquito netting around your work area. Play a tape of jungle
    sounds all day.

 /// 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.