Content deleted Content added
TokenLander (talk | contribs) |
|||
Line 102:
:Interpreted languages generally have (or could have) self-modification arrangements though these are usually via some special form or modification of the disc file containing the statements. An "eval" statement is a step further away from self modification. But Snobol contains features that could be regarded as self-modification (as during pattern matches), and also contains its source statements as a text array open to manipulation. So it is not just Lisp. If you prepare some examples, explanations will be needed for non-Lispers. But would they introduce a new idea? Such as demonstrating some desirable action by routine use of self-modification? [[User:NickyMcLean|NickyMcLean]] ([[User talk:NickyMcLean|talk]]) 20:45, 25 January 2010 (UTC)
::Well, Lisp can be compiled and have self modifying code as lisp doesn't really have code/syntax is the idea, a lisp implementation is an engine that rewrites symbols in lists, any way to specify lists will do in the end. [[User:Rajakhr|Rajakhr]] ([[User talk:Rajakhr|talk]]) 18:51, 25 February 2010 (UTC)
::I wouldn't really say that Lisp uses self-modifying code in the traditional sense. Usually the code transformations happen at compile time (although run and compile times can be interleaved in Lisp) and actual runtime "code modification" happens by the same way it would in a C program eg. by pointer reassignment. You can build new code by compiling S-expressions at runtime but it's conceptually similar to (and sometimes implemented with) a C program externally compiling and linking in new code. [[User:TokenLander|TokenLander]] ([[User talk:TokenLander|talk]]) 20:20, 3 March 2010 (UTC)
== Simplify maintenance? ==
|