ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> ruby-talk
ruby-talk
Re: Differences between irb and ruby.
by Austin Ziegler other posts by this author
Jun 30 2006 7:21PM messages near this date
Re: Differences between irb and ruby. | Re: Differences between irb and ruby.
On 6/30/06, Minkoo Seo <minkoo.seo@[...].com>  wrote:
>  I've recently learned that irb and ruby (ruby interpreter) behave
>  differently often and that irb is not running on ruby interpreter.

You have learned incorrectly.

irb behaves differently than Ruby might otherwise behave because all
of the code entered is eval-ed when it's in a "complete" state for the
Ruby interpreter to use.

irb most *certainly* runs on top of Ruby. But there occasional
permissions/visibility differences (pretty much the only differences
that matter) which will bite someone's expectations.

-austin
-- 
Austin Ziegler * halostatue@[...].com * http://www.halostatue.ca/
               * austin@[...].ca * http://www.halostatue.ca/feed/
               * austin@zieglers.ca
Thread:
Minkoo Seo
Ezra Zygmuntowicz
Minkoo Seo
Ezra Zygmuntowicz
Austin Ziegler
Minkoo Seo
Logan Capaldo
Mauricio Fernandez

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved