[#7872] Nonblocking socket-connect — "Francis Cianfrocca" <garbagecat10@...>

All, I needed a nonblocking socket connect for my asynchronous-event

18 messages 2006/05/14
[#7873] Re: Nonblocking socket-connect — Tanaka Akira <akr@...17n.org> 2006/05/14

In article <3a94cf510605140559l7baa0205le341dac4f47d424b@mail.gmail.com>,

[#7874] Re: Nonblocking socket-connect — "Francis Cianfrocca" <garbagecat10@...> 2006/05/15

How about introducing the method Socket#set_nonblocking, or alternatively

[#7875] Re: Nonblocking socket-connect — Yukihiro Matsumoto <matz@...> 2006/05/15

Hi,

[#7876] Re: Nonblocking socket-connect — "Francis Cianfrocca" <garbagecat10@...> 2006/05/15

Well, it's ok then. I'm comfortable adding in the nonblocking

[#7877] Re: Nonblocking socket-connect — Yukihiro Matsumoto <matz@...> 2006/05/15

Hi,

Re: [ ruby-Bugs-4344 ] :!~ not a symbol

From: Yukihiro Matsumoto <matz@...>
Date: 2006-05-03 16:13:40 UTC
List: ruby-core #7815
Hi,

In message "Re: [ ruby-Bugs-4344 ] :!~ not a symbol"
    on Wed, 3 May 2006 16:41:42 +0900, noreply@rubyforge.org writes:

|Initial Comment:
|:!~ is not an instance of Symbol as :=~ is.
|
|irb(main):001:0> :!~.class
|SyntaxError: compile error
|(irb):1: parse error, unexpected tNMATCH, expecting tSTRING_CONTENT or tSTRING_DBEG or tSTRING_DVAR or tSTRING_END
|:!~.class
|   ^
|        from (irb):1
|
|It might just be due to the fact that tNMatch is not included as part of the "op" symbol in parse.y

Yes, and it's because !~ (along with &&, ||, etc.) is a part of
syntax, not a operator (method).  If you really want to create a
symbol with a name "!~", you can do it by :"!~", but I don't think
that's not what you want.  In my opinion, this error is useful to
remind you that they are not usual operator symbols.

							matz.

In This Thread