[#2367] Standard libraries — Dave Thomas <dave@...>

From ruby-dev summary:

60 messages 2004/02/11

[#2397] PATCH: deprecate cgi-lib, getopts, importenv, parsearg from standard library — Gavin Sinclair <gsinclair@...>

Index: cgi-lib.rb

15 messages 2004/02/12

[#2465] PATCH: OpenStruct#initialize to yield self — Gavin Sinclair <gsinclair@...>

This is a common approach I use to object initialization; I don't know

24 messages 2004/02/19

Exception not caught / require BUG

From: Lothar Scholz <mailinglists@...>
Date: 2004-02-21 16:17:20 UTC
List: ruby-core #2491
Hello,

I found that the following exception does not raise an exception
but kills the ruby interpreter.

def test_traceback()
begin
  require "Socket"
rescue => detail
  print "Not available"
end
end


it works when i require "socket" instead of the non existing "Socket".
In the latter case i only get:

c:/ruby/lib/ruby/1.8/i386-mswin32/Socket.so: 127: The specified procedure could not be found.   - Init_Socket (LoadError)
c:/ruby/lib/ruby/1.8/i386-mswin32/Socket.so     from common/ruby/arachno_traceback.rb:25:in `test_traceback'
        from common/ruby/arachno_traceback.rb:45

But since the file does not exist the error message about a not found
procedure is also wrong.

        
-- 
Best regards,
 Lothar                          mailto:mailinglists@scriptolutions.com


In This Thread

Prev Next