Re: Wildcard_match behaviour

new topic     » goto parent     » topic index » view thread      » older message » newer message

D. Newhall wrote:
> 
> Julio C. Galaret Viera wrote:
> > 
> > Why is this sentence not detected as an error? [missing ")" in first
> > wildcard_match
> > is at the end]
> > 
> > }}}
<eucode>
> > if...
> > 		
> > elsif wildcard_match("--month=???", cmd[3] and
> > wildcard_match("--update=NET-???", cmd[4]))
> > then
> > 
> > else...
> > 
> > end if
> > }}}
<eucode>
> 
> It's not an error technically.
> 
> What you're doing is and-ing `wildcard_match("--update=NET-???", cmd[4])` and
> `cmd[3]` and then calling `wildcard_match("--month=???",`
> with the result.

I see but... how can I technically *and* a string and a boolean result and then
compare altogether with another string? Too confusing for me.
Too much flexibility for my taste since I've been spending so much time trying
to figure out why the program wasn't doing what it should and without giving any
error message.

JG

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu