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.
- Follow-Ups:
- Re: Warning from Piecewise
- From: Andrzej Kozlowski <akoz@mimuw.edu.pl>
 
 
 - Re: Warning from Piecewise