I want to save some definitions to an
.mx file in order to be able to load them quickly. However, I run into a strange problem.
If I do,
I get a file containing the definitions I want (this is human readable, so I can check the file contains what I want) and I can then load it with
Get["file1"] after which the definitions have been loaded.
However, when I do the same with the MX format:
Export["file2.mx", Definition[test1], "MX"]
Get["file2.mx"] it returns
Null and does not load the definitions (of course here I cannot check whether the mx file really contains the correct definitions so I don't know whether the issue is in saving or loading the file).
What am I doing wrong?