O
Omar Campos
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!
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!