Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Getting unexpected return (LocalJumpError) Rubyscript2exe
Eric Chiasson
1/5/2007 3:43:00 PM
Hi,
When running Rubyscript2exe on my .rb application. I get and unexpected
return (LocalJumpError). But works fine when I do ruby app.rb.
The only thing on that line is return 0;
Is this normal ? If not. anyone knows how to fix it ?
Thanks!
--
Posted via
http://www.ruby-...
.
1 Answer
Eric Chiasson
1/5/2007 4:12:00 PM
0
Eric Chiasson wrote:
> Hi,
> When running Rubyscript2exe on my .rb application. I get and unexpected
> return (LocalJumpError). But works fine when I do ruby app.rb.
>
> The only thing on that line is return 0;
> Is this normal ? If not. anyone knows how to fix it ?
>
> Thanks!
I continued reading the Ruby Documentation and used exit(int) instead of
return and it works great!
My code did not use any functions. So I now assume return is for
functions and exit is to return to any calling application
Thanks to anyone who took the time to read it.
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Getting unexpected return (LocalJumpError) Rubyscript2exe
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password