MathGroup Archive 2010

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

Search the Archive

SyntaxInformation and OptionsPattern


Here is a slightly modified example from the SyntaxInformation Function
page:

 

Options[f] = {aaa -> 1, bbb -> 2}; 

 

SyntaxInformation[

   f] = {"ArgumentsPattern" -> {_, _, OptionsPattern[]}};

 

f[x, y, 3, aab -> 2] 

 

The "3" is clearly not an Option, and it exceeds the allowed number of
arguments - so why isn't it flagged in Red?

 

 

David Park

djmpark at comcast.net

 <http://home.comcast.net/~djmpark> http://home.comcast.net/~djmpark/  



  • Prev by Date: Can tensor packages do this...
  • Next by Date: ChartLabels and ChartLayout->"Percentile"
  • Previous by thread: Can tensor packages do this...
  • Next by thread: Re: SyntaxInformation and OptionsPattern