SyntaxInformation and OptionsPattern
- To: mathgroup at smc.vnet.net
- Subject: [mg112726] SyntaxInformation and OptionsPattern
- From: "David Park" <djmpark at comcast.net>
- Date: Tue, 28 Sep 2010 06:05:51 -0400 (EDT)
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/