From: Martin Gagnon Date: 2007-04-06T03:28:59+09:00 Subject: Re: Install problems under QNX Just noticing that the numbers returned by IO#pos are way off, but cycling through 4 values. This test script: ----- f = File.open("test.txt", "r+") puts "f.pos: #{f.pos}" ----- produces successively: f.pos: 1160802808249712640 f.pos: 3466645817463406592 f.pos: 5772488826677100544 f.pos: 8078331835890794496 f.pos: 1160802808249712640 f.pos: 3466645817463406592 f.pos: 5772488826677100544 f.pos: 8078331835890794496 The difference is constant: 2305843009213693952 (2^61) And this script: ----- 3.times do f = File.new("/home/martin/test.txt") puts "f.pos: #{f.pos}" end ----- produces successively: f.pos: 1160802808249712640 f.pos: 1160802808249712640 f.pos: 1160802808249712640 ----- f.pos: 3466645817463406592 f.pos: 3466645817463406592 f.pos: 3466645817463406592 ----- -- Posted via http://www.ruby-forum.com/.