Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #6791
| Newsgroups | comp.lang.ruby |
|---|---|
| Date | 2013-04-30 22:15 -0700 |
| Message-ID | <178bbf18-32c2-4ecb-8318-972617bfb332@googlegroups.com> (permalink) |
| Subject | RubyWart: Missing Name Errors (AGAIN!) |
| From | rantingrickjohnson@gmail.com |
Same bowel movement, different cess pool!
Can someone please explain the logic of having undefined symbols default to random values instead of throwing a NameError? Because this is making me F'ING NUTS PEOPLE!!!!
============================================================
Code Sample
============================================================
class Foo
def foo
$stdout.write("@poo = #{@poo}\n")
end
end
============================================================
Interactive Session
============================================================
rb> f = Foo.new
#<Foo:0x79e6680>
rb> f.foo
@poo = 7
============================================================
Resulting Emotional State
============================================================
ಠ_ಠ
Back to comp.lang.ruby | Previous | Next — Next in thread | Find similar | Unroll thread
RubyWart: Missing Name Errors (AGAIN!) rantingrickjohnson@gmail.com - 2013-04-30 22:15 -0700 Re: RubyWart: Missing Name Errors (AGAIN!) Robert Klemme <shortcutter@googlemail.com> - 2013-05-01 11:27 +0200
csiph-web