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.

How can I create a list of bindings made to a certain variable when evaluating an expression? I want to determine three bindings made.

share|improve this question
1  
Trace[expr,i=_] –  belisarius Apr 21 at 22:52
1  
Make a class that represents the variable (as say with Java's Integer class), with private array that keeps track of all assignments/time stamp/counters, etc.. all hidden inside the class, Supply a set[] and get[] methods to the clients of your variable to use on the variable once it is instantiated. Making such Class in M is very easy. Make a Module, and inside the Module create the local variables and private methods. see mathematica.stackexchange.com/questions/586/… for one example. –  Nasser Apr 22 at 1: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.