From: Dan Sugalski Date: 2002-12-19T05:15:29+09:00 Subject: Re: Nature of ruby At 2:25 PM +0900 12/18/02, Gavin Sinclair wrote: >From: "Nikodemus Siivola" > > >> >> On Wed, 18 Dec 2002, Gavin Sinclair wrote: >> >> > Interesting. How would the following code be compiled? >> > >> > code = gets >> > eval code >> >> Into a ruby tuby interpreter that reads it's source from the stdin. Repeat: >> "Eval is just another function". > >So let me get this straight. A *compiled* Ruby program executes eval by >running an *interpreter*. Awesome... Nope. A compiled Ruby program executes eval by running the embedded compiler and executing the compiled code. Programs can generate executable code internally on the fly--it's not *that* difficult... -- Dan --------------------------------------"it's like this"------------------- Dan Sugalski even samurai dan@sidhe.org have teddy bears and even teddy bears get drunk