[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Internal Conversions



Mark asked:

> Anyway, has anyone ever tried making MacPerl modify a program
> on-the-fly as the program was executing?

I take it you mean self-modifying. I'm sure you could relatively
easily modify the source code of a running perl program, but I
don't think this would have any effect until the next time you
ran it since the code is probably buffered by the MacPerl runtime
environment.


Then Brian wrote:

> This is DEFINITELY NOT a good idea regardless of what language
> you do it in.

Not to start any flame wars, but LISP is a language that was
specifically designed to be self modifying. There are many other,
so called, AI languages that embrace this concept, as well. Perl,
however, would probably be one of my last choices of languages to
write self modifying code with... it's too unstructured.

So, I agree with the first half of your sentence, but disagree
vehemently with the last half.


jay

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch