Possible Duplicate:
What is the most convenient way to read definitions of in-memory symbols when we don’t have the source files?
I would like to look at the code that implements FillingTransform. Does Mathematica provide any way to do this?
I would like to look at the code that implements |
||||
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
|
In general, @Jacob Akkerboom is correct: one cannot usually view the source code for arbitrary Mathematica functions. In this particular case, however, we find an exception. By doing:
we observe a call to
reveals a number of checks on the arguments and setup for a call to
then the complete implementation becomes visible. Although I won't reproduce that here for obvious reasons, the basic idea is a combination of |
|||||||||||||||||
|
ReadProtectedis mainly implemented in Mathematica code and you can access its source by removing the attribute (as in Oleks' answer). There are of course those readprotected functions that simply call another function that is fully concealed. There is little hope that someone is able to reverse-engineer these functions just by observing their behaviour. – István Zachar Jan 3 at 17:07