Re: Yet another patch (dmd.py this time)
Bram Moolenaar <[email protected]> Thu, 26 Feb 2004 12:21:11 +0100
| Newsgroups | gmane.comp.tools.aap.devel |
|---|---|
| Message-ID | <[email protected]> |
Lars Ivar Igesund wrote:
> > Just checking:
> >
> >
> >>+ ":sys $DMD -L$*?DLINKFLAGS -L+$*?LIBS -of$target $source")
> >
> >
> > This means that you get a "-L" when $DLINKFLAGS is empty. Isn't that a
> > problem? Same for -L+$?LIBS, you would get "-L+" when $LIBS is empty.
> >
>
> Hmm, it works as it is(-L just passes what follows to the linker, in
> this case an empty string), but I would expect that the RC stuff would
> result in nothing when '?' is used and the variable is empty. That this
> is not the case, seems inconsistent to me.
I suppose it's common to expect that -L$*LIBS results in an empty string
when $LIBS is empty. I can change that. It does mean an incompatible
change, but I expect it to be very unlikely that anybody will be bitten
by this.
When using something like -L$*(LIBS).lib the result is empty when
$LIBS is empty, right? But how about this:
one =
two = aa bb cc
:print my$*one$*two
Should this print nothing or myaa mybb mycc ?
If you think it's nothing, then what should this do:
one = aa bb cc
two =
:print my$*one$*two
Another variang is using $two instead of $*two.
--
We're knights of the round table
We dance whene'er we're able
We do routines and chorus scenes
With footwork impeccable.
We dine well here in Camelot
We eat ham and jam and spam a lot.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ Project leader for A-A-P -- http://www.A-A-P.org ///
\\\ Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click