Bugs item #1236, was opened at 2004-12-20 13:49 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=1236&group_id=426 Category: Standard Library Group: None Status: Open Resolution: None Priority: 5 Submitted By: Jamis Buck (minam) Assigned to: Nobody (None) Summary: DL: structure with member of pointer type gives error Initial Comment: Consider the following case which demonstrates the error: require 'dl/import' require 'dl/struct' module ErrorDemo extend DL::Importable PtrStruct = struct [ "void *die" ] end e = ErrorDemo::PtrStruct.malloc e.die On the last line, when the 'die' member of the struct is accessed, the following error is produced: /usr/lib/ruby/1.8/dl/struct.rb:34:in `[]': unsupported type 'p' (DL::DLTypeError) from /usr/lib/ruby/1.8/dl/struct.rb:34:in `die' from test-case.rb:10 This used to work, so I suspect some recent change (perhaps rc3 of Ruby 1.8.2?) changed the supported structure member types. Ruby version: ruby 1.8.2 (2004-11-06) [i686-linux] Platform: Linux 2.6.9-gentoo-r1 ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=1236&group_id=426