0

I'm seeking advice on how to track down what might cause the following difference in behavior. I have two independent installations of MMA 10.0.1.0, both on Mac OS X Mavericks on identical x86 Mac Book Pros vintage 2013.

Consider the following expressions in fresh kernels right after cold-booting the machines and running nothing else outside of whatever junk gets run at boot time.

f[OptionsPattern[]] := With[{y = OptionValue[x]}, y]
f[x -> 42]

42

On one of the two machines, I get the (expected) message

OptionValue::nodef Unknown option x for f. >>

On the other machine, I don't get the message. I guess it's been turned off somewhere, but I don't know how to find out where or how it's been turned off. Any clues on how to search for the cause of the difference or otherwise diagnose this would be greatly appreciated. The situation causes me to lose confidence in the installation that's not producing the expected message.

Reb.Cabin
  • 8,661
  • 1
  • 34
  • 62

0 Answers0