Skip to content

failed rule when defining a function #1

@jc00ke

Description

@jc00ke
> 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions