[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Re : [ANN] One-Click Ruby Installer 1.8.5-23 released

Alexey Verkhovsky

2/18/2007 10:26:00 PM

Ruby Admirer wrote:
>> That is simply because IRB has already required 'readline' while it was
>> starting up.
>>
> That makes sense.
> But why within irb, load 'readline' raises a LoadError ?
>
because load() needs a file path (absolute or relative, with .rb
extension included), whereas require() adds .rb extension to the name,
and then looks for the file in all paths listed in $:

Alex