Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

using : Mathematica 9.0.1.0

Hello !

Does RuleDelayed work inside MessageName ?

This code:

myFunction[x_]:= x + 1;
myFunction::test = test /. test :> StringJoin[{DateString[], " message"}];
Message[myFunction::test]

gives

myFunction::test: 2014 04 10 15 10 51 781 message

on a pc and

myFunction::test: -- Message text not found --

on another one, and I can not get a sens of the underlying general rule.

Presumably, I messed up some Global Preferences in Options Inspector, but I can not imagine which one.

Thanks !!

share|improve this question
1  
Switch to using SetDelayed and see if that changes its behavior. –  rcollyer Apr 10 at 13:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.