Entering macruby by mistake on the console command line instead of macirb gets no reply. The user must type ctrl-C to abort it. Probably macruby should reply with usage information and exit. Bob Rice
On 2011-01-19, at 20:55 , Robert Rice wrote:
Entering macruby by mistake on the console command line instead of macirb gets no reply. The user must type ctrl-C to abort it.
Probably macruby should reply with usage information and exit.
Not really. macruby is expecting input. If you type a program there and ^D, it'll run. $ macruby puts 'hi' ^D hi
Hi Caio: Is macruby similar to macirb but without the prompts? Thanks, Bob Rice On Jan 19, 2011, at 6:17 PM, Caio Chassot wrote:
On 2011-01-19, at 20:55 , Robert Rice wrote:
Entering macruby by mistake on the console command line instead of macirb gets no reply. The user must type ctrl-C to abort it.
Probably macruby should reply with usage information and exit.
Not really. macruby is expecting input. If you type a program there and ^D, it'll run.
$ macruby puts 'hi' ^D hi
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
On 2011-01-19, at 21:43 , Robert Rice wrote:
Hi Caio:
Is macruby similar to macirb but without the prompts?
It's not interactive. It just reads from stdin and executes that. And implementation-wise, macirb is a whole other beast. This is not particular to macruby. It's how standard ruby works. (and really, many other languages, eg. perl.)
participants (2)
-
Caio Chassot
-
Robert Rice