[#2529] concerns about Proc,lambda,block — "David A. Black" <dblack@...>

Hi --

39 messages 2004/03/01
[#2531] Re: concerns about Proc,lambda,block — ts <decoux@...> 2004/03/01

>>>>> "D" == David A Black <dblack@wobblini.net> writes:

[#2533] Re: concerns about Proc,lambda,block — "David A. Black" <dblack@...> 2004/03/01

Hi --

[#2537] Re: concerns about Proc,lambda,block — matz@... (Yukihiro Matsumoto) 2004/03/01

Hi,

[#2542] Re: concerns about Proc,lambda,block — Mathieu Bouchard <matju@...> 2004/03/02

[#2545] Re: concerns about Proc,lambda,block — matz@... (Yukihiro Matsumoto) 2004/03/02

Hi,

[#2550] Re: concerns about Proc,lambda,block — Mauricio Fern疣dez <batsman.geo@...> 2004/03/03

On Wed, Mar 03, 2004 at 07:51:10AM +0900, Yukihiro Matsumoto wrote:

[#2703] Proposed patch to add SSL support to net/pop.rb — Daniel Hobe <daniel@...>

This patch adds support to Net::POP for doing POP over SSL. Modeled on how

19 messages 2004/03/27
[#2704] Re: Proposed patch to add SSL support to net/pop.rb — Daniel Hobe <daniel@...> 2004/03/27

This is v2 of the patch. Cleaned up a bit and added some more docs.

[#2707] Re: Proposed patch to add SSL support to net/pop.rb — Daniel Hobe <daniel@...> 2004/03/28

v3 of the patch:

[#2721] Re: Proposed patch to add SSL support to net/pop.rb — Minero Aoki <aamine@...> 2004/03/30

Hi,

Re: Obtaining size of Ruby objects in C

From: Elias Athanasopoulos <elathan@...>
Date: 2004-03-29 16:32:31 UTC
List: ruby-core #2720
On Thu, Mar 25, 2004 at 08:54:34PM +0900, Christopher C.Aycock wrote:
> I'm writing a wrapper over a C function for Ruby. Because the Ruby 
> function has dynamic features that the C version does not, I can't use 
> SWIG and have to write everything by hand. I was wondering if anyone 
> knows how to obtain the size (in bytes) of a single element of an array.

I can't understand why SWIG fails.

> For example, if I have an array of type T, then sizeof (T) would give 
> me what I'm looking for. The C wrapper is being passed a VALUE type 
> parameter that should represent an array from the user. Is there a way 
> to determine the type of the array, plus the number of bytes of that 
> type?

You have to check its of the array's elements if you want to find the 
overall memory stamp of the array, but still I can't figure out why
you want to do such a thing.

Also, there isn't *a type* of a Ruby array. This is true, in a sense,
only for homogeneous arrays, but Ruby arrays are not, in general, 
homogeneous (i.e. different types can co-exist in a single array).

Regards,
-- 
University of Athens			I bet the human brain 
Physics Department				is a kludge --Marvin Minsky 

	

In This Thread

Prev Next