From: Stefan Schmiedl Date: 2001-12-02T04:24:00+09:00 Subject: [ruby-talk:27212] Re: Musing Tobias Reif (2001-12-01 22:46): > Stefan Schmiedl wrote: > > > >>A nice Ruby editor would be cool as one of the apps: > >>one feature might be: 'select a portion of code, then hit the "run" > >>button' > >> > >suppose your code is in the middle of the file. > >do you want to run require- and include-Statements, too? > > > ermm... that could be settable in preferences, along with other > deatils(?), for example. which makes it hard to use. it would be nice, if you could create a snapshot of a ruby process like some lisps and smalltalks do. throw in something like FORGET from FORTH and you're neatly set. oh, for those non-FORTHers out there :-) FORGET xxx erases all of the definitions made after xxx, which comes in handy, if you need to restore some prior state. > > The whole thing would be handy for those irb 1/2/3 liners; I often don't > require('') stuff for those. some lisps (e.g. Macintosh Common Lisp) have this, i.e. you type some definition into an editor window, hit Enter with the cursor after the closing ) and the current expression is sent to the active Listener which evaluates it. > > Which Win editor has the capability of running portions of > selected code? gvim should. never tried it. s. -- Stefan Schmiedl EDV-Beratung, Programmierung, Schulung Loreleystr. 5, 94315 Straubing, Germany Tel. (0 94 21) 74 01 06 Public Key: http://xss.de/stefan.public shhhh ... I can't hear my code!