Re: Bug in Pattern Matching with Condition?
- To: mathgroup at smc.vnet.net
- Subject: [mg97279] Re: Bug in Pattern Matching with Condition?
- From: dh <dh at metrohm.com>
- Date: Tue, 10 Mar 2009 05:32:32 -0500 (EST)
- References: <goqpe7$lrn$1@smc.vnet.net> <goqugt$ngp$1@smc.vnet.net>
Hi Jens, can you elaborate a bit. According to the definition of Verbatim , Verbatim[Condition][_, _]] should match literally "Condition][_, _]" and not Condition[a, b]. Therefore it looks more like another bug to me and adds to the mystery of why MatchQ[Condition[a, b], Condition[_, _]] evaluates to False. Daniel Jens-Peer Kuska wrote: > Hi, > > but > > MatchQ[Condition[a, b], Verbatim[Condition][_, _]] > > Regards > Jens > > cesar wrote: >> Hi Mathematica group, do you get any idea of >> why the following sentences don't give true? >> >> MatchQ[Condition[a, b], Condition[_,_]] >> MatchQ[Condition[a, b], Condition[__]] >> MatchQ[Condition[a, b], HoldPattern[Condition[__]]] >> >> Is this a bug? >> >> Cheers, >> Cesar >> >
- Follow-Ups:
- Re: Re: Bug in Pattern Matching with Condition?
- From: Andrzej Kozlowski <akoz@mimuw.edu.pl>
- Re: Re: Bug in Pattern Matching with Condition?