I see the point about how difficult it would be with Rebol, but in other languages, no, it's not that difficult - and in fact using Rebol to analyze another programming language would probably make it a lot easier. I used to do this using Rexx on IBMs to analyze C and assembler programs - replacing sequences of code with more efficient sequences and finding sequences that should become functions and determining what tokens in that code should become parameters. --- [EMAIL PROTECTED] wrote: > Well, there is the trivial case of identical source, > assuming that it is run in the same context. > > This is interesting! > Could you please elaborate? > > Isn't checking to see if two different programs > are doing "the same thing" rather difficult for > all but the dullest cases, in practically > any programming language? > > -Galt > > >===== Original Message From > [EMAIL PROTECTED] ===== > >Hello [EMAIL PROTECTED]! > > > >On 30-Ago-00, you wrote: > > > > g> And since one can look at > > g> the template of any defined function at run > time, it > > g> seems possible to determine which tokens have > > g> significance in a context, and which have none > or > > g> less. Sort of like being able to determine > that "the > > g> names have been changed to protect the > innocent", but > > g> the story's the same. What dost thou think? > > > >If you want to determine if two scripts are doing > the same thing, > >you'd at least have to simulate their execution. > That is, you > >can't determine that by just statically analyzing > REBOL code. > > > >If you really find a way to do so, then you've > found a way to > >compile REBOL code. > > > >Regards, > > Gabriele. > >-- > >Gabriele Santilli <[EMAIL PROTECTED]> - Amigan - > REBOL programmer > >Amiga Group Italia sez. L'Aquila -- > http://www.amyresource.it/AGI/ > __________________________________________________ Do You Yahoo!? Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/
