[#1207] warning in ruby extension eats memory — Eugene Scripnik <Eugene.Scripnik@...>

This message was posted to ruby-talk, but I didn't get responce from

22 messages 2003/07/01
[#1208] Re: warning in ruby extension eats memory — ts <decoux@...> 2003/07/01

>>>>> "E" == Eugene Scripnik <Eugene.Scripnik@itgrp.net> writes:

[#1209] Re: warning in ruby extension eats memory — Eugene Scripnik <Eugene.Scripnik@...> 2003/07/02

ts wrote:

[#1210] Re: warning in ruby extension eats memory — ts <decoux@...> 2003/07/02

>>>>> "E" == Eugene Scripnik <Eugene.Scripnik@itgrp.net> writes:

[#1211] Re: warning in ruby extension eats memory — Eugene Scripnik <Eugene.Scripnik@...> 2003/07/04

ts wrote:

[#1212] Re: warning in ruby extension eats memory — ts <decoux@...> 2003/07/04

>>>>> "E" == Eugene Scripnik <Eugene.Scripnik@itgrp.net> writes:

[#1213] Re: warning in ruby extension eats memory — Eugene Scripnik <Eugene.Scripnik@...> 2003/07/04

ts wrote:

[#1214] Re: warning in ruby extension eats memory — ts <decoux@...> 2003/07/04

>>>>> "E" == Eugene Scripnik <Eugene.Scripnik@itgrp.net> writes:

[#1215] Re: warning in ruby extension eats memory — Eugene Scripnik <Eugene.Scripnik@...> 2003/07/04

ts wrote:

[#1237] FTP.new with block — Gavin Sinclair <gsinclair@...>

Hi,

22 messages 2003/07/19
[#1238] Re: [Patch] FTP.new with block — ts <decoux@...> 2003/07/19

>>>>> "G" == Gavin Sinclair <gsinclair@soyabean.com.au> writes:

[#1240] Re: [Patch] FTP.new with block — Mathieu Bouchard <matju@...> 2003/07/19

[#1297] Fix for Bug 1058 — Markus Walser <walser@...>

Hi,

16 messages 2003/07/25

Re: [Patch] FTP.new with block

From: ts <decoux@...>
Date: 2003-07-20 09:51:03 UTC
List: ruby-core #1251
>>>>> "R" == Richard Zidlicky <rz@linux-m68k.org> writes:

R> something more systematic is needed. So far only 2 widely used 
R> classes appear to evaluate blocks passed to new: Proc and Tk.

svg% ruby -e 'p Array.new(2) { 12 }'
[12, 12]
svg% 

svg% ruby -e 'a = Hash.new { 12 }; p a[1]'
12
svg% 

R> Furthermore Tk is somehwat confusing for the beginner because
R> it uses instance_eval or something completely different to eval
R> the block.

 Why a method must eval the block when it's called ? See Hash::new

R> How to get it consistent? Leave the 2 widely used exceptions
R> to the rule (no block arg for new) some time to phase out and
R> use either a clear naming convention (eg new_wb instead of new)

 and change the name of *all* methods to have _wb when they use a block ?


Guy Decoux


In This Thread