Re: Yet another patch (dmd.py this time)
Lars Ivar Igesund <[email protected]> Sat, 28 Feb 2004 15:31:47 +0100
| Newsgroups | gmane.comp.tools.aap.devel |
|---|---|
| Message-ID | <[email protected]> |
Bram Moolenaar wrote: > Lars - > > >>>For me using $?var when $var was not set is equivalent to use $var when >>>it is empty. Thus I don't think the precense of a '?' should matter. >> >>Reading the docs more thouroughly, I have to agree. >> >>So my conclusion on how I want it: >> >>During RC-expansion, the result should be nothing if all expanded >>variables are empty. > > > I would agree with you, except that I can think of a situation where you > don't want it this way: > > LIBS = one two > NOLIBS = > ext = .lib > noext = > > :print - lib$*LIBS$ext - > :print - lib$*LIBS$noext - > :print - lib$*NOLIBS$ext - > :print - lib$*NOLIBS$noext - > > What would you expect to be the result? I would think this: > > - libone.lib libtwo.lib - > - libone libtwo - > - - > - - > > Agreed? > > I think the rule should be that $*var expansion is empty when $var is > empty. Whether something follows or not is irrelevant. Good example. I agree. Lars Ivar Igesund ------------------------------------------------------- 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