hardcoding variable name into lsp data file is not a good idea
as soon as load returns the last expression evaluated, one can do it this way
what is the difference to say that it is not a good idea? The example I posted is what I use to update a global variable whose value, if it changes, is written to a file lsp and reloaded into new file dwg if opened.
I agree Vovka here. Keeping the variable outside the data file is better for two reasons:
1. It is more flexible: You can attach the same data to multiple variables.
2. You are less likely to end up with unlocalized variables.