Hi, Am 06.09.2009 um 22:10 schrieb Phil Hagelberg:
That's not really helpful for my purposes; I want by code to behave the same way whether started from slime, an IDE, or the REPL; to do that I'dhave to either maintain my own list of heuristics for each possible environment or get some sort of buy-in from the developers of eachenvironment. But now that I think about it, I don't suppose it's likelyto get enough consensus/buy-in for such a thing to actually be areliable heuristic, so I'll just code it against SLIME and let users ofthe other environments patch it themselves. =)
Maybe I'm misunderstanding something, but why do you need to know, how the code was started, when you want it to always behave the same? In which way needs SLIME special treatment?
When I code with VimClojure, the code is loaded via require. Hot-swap of functions definitions is done by a proper (in-ns ...) and then sending the code for evaluation. So it's basically equivalent to a require.
Now, if I run my code from the the main of an AOT compiled class, then it is loaded via – well – require.
Maybe I experiment from the Repl with my code. Then it is loaded via – ok, ok, you got the point – require.
Do you have an example in which of the above cases, the code must do something differently to behave the same?
Sincerely Meikel
smime.p7s
Description: S/MIME cryptographic signature