Prolly a simple question

Hi –

Answering 2/3 of your questions :slight_smile:

Sorry if these questions have come up before, but google searching hasn’t
pulled up anything for me.

  1. How do you compare types? i.e.

w = nil
x = “foo” if w != nil # still assigns foo to x

No it doesn’t:

irb(main):001:0> w = nil
=> nil
irb(main):002:0> x = “foo” if w != nil
=> nil
irb(main):003:0> x
=> nil

Can you give another example of what you’re trying to do?

  1. What is the official irc network and channel for ruby? (#ruby-lang on
    what network?)

irc.freenode.net

David

···

On Sat, 11 Oct 2003 ghost-no-spam@cotse.net wrote:


David Alan Black
home: dblack@superlink.net
work: blackdav@shu.edu
Web: http://pirate.shu.edu/~blackdav

Whoops, that was a message from March I just replied to. We’re getting
another wave of old messages.

David

···


David Alan Black
home: dblack@superlink.net
work: blackdav@shu.edu
Web: http://pirate.shu.edu/~blackdav