[#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: Thought about class definitions

From: matz@... (Yukihiro Matsumoto)
Date: 2004-03-09 05:48:34 UTC
List: ruby-core #2607
Hi,

In message "Thought about class definitions"
    on 04/03/09, Dave Thomas <dave@pragprog.com> writes:

|If we allowed
|
|    class <expr>
|
|Then I could write
|
|    class Struct.new(:name, :age)
|       def to_s
|         "#{self.name} is #{self.age} years old"
|       end
|    end
|
|Which would be nice. I quite often extend Structs, and being able to do 
|it in one step seems like a tidy idea.

I can't explain the semantics for normal case, for example, in

  class Foo<Bar
  end

Foo is undefined at the point.  Thus I don't think I will accept
this.

|An alternative might be to have Struct.new do a class_eval:
|
|     Struct.new(:name, :ago) do
|        def to_s
|          ...
|        end
|     end

This is much better.  Will be available in 1.9.

							matz.

In This Thread

Prev Next