MathGroup Archive 2005

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

Search the Archive

Warning from Piecewise

  • To: mathgroup at smc.vnet.net
  • Subject: [mg61523] Warning from Piecewise
  • From: Chris Rodgers <rodgers at physchem.NOSPAMox.aREMOVEc.uk>
  • Date: Fri, 21 Oct 2005 00:38:06 -0400 (EDT)
  • Organization: Oxford University, England
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

When I try to set a delayed expression like this:

Comm[Piecewise[A:{{_, _}..}], Piecewise[B:{{_, _}..}]] :=
   Comm[Testy[A], Testy2[B]]

I get a warning from Piecewise that says:

Piecewise::pairs: The first argument A : {{_, _} ..} of Piecewise is not 
a list of pairs.

I thought that the HoldAll attribute on SetDelayed should prevent 
evaluation of the LHS argument, so where is this warning coming from?

Can I ignore a warning like this, or should I instead use a different 
sort of pattern?

Many thanks,

Chris Rodgers.


  • Prev by Date: Re: Display sound but suppress graphics
  • Next by Date: Circle equation problem
  • Previous by thread: Re: refer to the result of FindRoot[ ]
  • Next by thread: Re: Warning from Piecewise