MathGroup Archive 2006

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

Search the Archive

condition placement


there seem to be a lot of subtleties about the placement of condition

for instance, the following will not substitute the matched value of
boxes into stringFormattableQ

toString[expr_,boxes_,opts:optionsOrNullPseudoPatternObject/;stringFormattableQ[boxes]]:=
	toStringKernel[expr,boxes,opts];

this will

toString[expr_,boxes_/;stringFormattableQ[boxes],opts:optionsOrNullPseudoPatternObject]:=
	toStringKernel[expr,boxes,opts];

hmm

-- 
http://chris.chiasson.name/


  • Prev by Date: Re: Understanding N and Precision
  • Next by Date: frustrating pattern matcher
  • Previous by thread: Re: Bairstow Method
  • Next by thread: frustrating pattern matcher