Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

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

>>

> 




  • Prev by Date: Re: Re: Re: Re: typsetting bug still
  • Next by Date: Re: Mathematica 7.0.1.0 and some General Comments
  • Previous by thread: Re: Bug in Pattern Matching with Condition?
  • Next by thread: Re: Re: Bug in Pattern Matching with Condition?