From: Omar Campos Date: 2009-11-24T10:18:12+09:00 Subject: What is __FILE__ and $0? (newbie question) Hello everyone, I am new to Ruby, learning the basics, and the basics of FXRuby (I know this is not the FXRuby forum, but I think this question pertains Ruby per se). I've noticed the "recommended" way of creating the main app loop goes like this: if __FILE__ == $0 #main loop code end I've already done some GUI apps, and had no need of these wierd variables. But I am still curious, what do they mean? Thanks for any info! -- Posted via http://www.ruby-forum.com/.