MathGroup Archive 2007

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

Search the Archive

RE: Precedence of Infix Operator


Thanks again Carl.

I had a faint recollection there was such a file and actually spent about an
hour looking through system .tr files - but not that one of course!

However, I have a difficulty with this solution. If I were to include this
as part of a package I think that users would be justifiably reluctant to
copy my new UnicodeCharacters.tr into the Wolfram system files, even if I
also supplied a saved version. And also I wouldn't want this as a permanent
change.

Mathematica supplies a number of infix operators that have no definitions.
If they have no definitions, why should it be assumed that they would have a
fixed precedence level? Specifying a precedence level is really a very
fundamental part of implementing a new operator. Would it be that difficult
to allow these operators to take a PrecedenceLevel option so that a user
could set this value for his or her local needs? I believe this would be a
very useful feature for Mathematica.


David Park
djmpark at comcast.net
http://home.comcast.net/~djmpark 


From: Carl Woll [mailto:carlw at wolfram.com] 

David Park wrote:

>I would like to use some less common infix operator, such as Colon or 
>VerticalBar, but give it a precedence on input greater than Times. Is there

>a way to do this?
>
>  
>
First, save a copy of UnicodeCharacters.tr. Then, open it and change the 
precedence of \[Colon] or \[VerticalBar] to something larger than that 
of \[Times] (520).

Carl Woll
Wolfram Research



  • Prev by Date: Re: MultivariateStatistics Package
  • Next by Date: Re: Get list of function variables?
  • Previous by thread: Re: Precedence of Infix Operator
  • Next by thread: Re: Precedence of Infix Operator