[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Scnaf Patch?

takaoueda

11/11/2004 1:45:00 AM

It seems pos is undefined for STDIN.
In order to use scanf for console input I had to change the line
start_position = pos
in class IO, def scanf(str, &b) in lib/ruby/1.8/scanf.rb into
if self == STDIN
start_position = 0
else
start_position = pos
end

Any ideas?
1 Answer

dblack

11/11/2004 2:11:00 AM

0