Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed rule when defining a function #1

Open
jc00ke opened this issue May 3, 2011 · 1 comment
Open

failed rule when defining a function #1

jc00ke opened this issue May 3, 2011 · 1 comment

Comments

@jc00ke
Copy link
Contributor

jc00ke commented May 3, 2011

> square = (x) -> x*x
@1:1 failed rule 'string', got 's'
> exit()
@1:1 failed rule 'string', got 's'
> Ctrl + c
@1:1 failed rule 'string', got 's'
> exit()
An exception occurred running /home/jesse/.rvm/gems/rbx-head-nhydra/bin/poetics
    Thread has been interrupted (Interrupt)

Backtrace:
   { } in Rubinius::Loader#signals at kernel/loader.rb:132
                Signal.run_handler at kernel/common/signal.rb:66
          Rubinius.received_signal at kernel/delta/rubinius.rb:219
                Readline.readline at .rvm/rubies/rbx-head-nhydra/lib
                                     /c-readline.rb:5
             Poetics::Script#repl at .rvm/gems/rbx-head-nhydra/gems
                                     /poetics-0.0.1/bin/poetics:111
             Poetics::Script#main at .rvm/gems/rbx-head-nhydra/gems
                                     /poetics-0.0.1/bin/poetics:136
                Object#__script__ at .rvm/gems/rbx-head-nhydra/gems
                                     /poetics-0.0.1/bin/poetics:140
               Kernel(Object)#load at kernel/common/kernel.rb:730
                 Object#__script__ at .rvm/gems/rbx-head-nhydra/bin/poetics:19
  Rubinius::CodeLoader#load_script at kernel/delta/codeloader.rb:65
  Rubinius::CodeLoader.load_script at kernel/delta/codeloader.rb:90
           Rubinius::Loader#script at kernel/loader.rb:592
             Rubinius::Loader#main at kernel/loader.rb:719
             Rubinius::Loader.main at kernel/loader.rb:758
        Object#script (__script__) at kernel/loader.rb:769

Can't exit easily from the REPL either.

@brixen
Copy link
Owner

brixen commented May 3, 2011

Hah, you rock. I'll get right on this.

Exiting the REPL is as easy as ^D.

To make it easier for typers, I'll add exit() and if you type quit(), I'll catch that and tell you to use exit().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants