[#4745] Win32: Ruby & APR; build problems for Ruby Subversion SWIG bindings — Erik Huelsmann <ehuels@...>

Having taken upon me the task to provide a Windows build for

24 messages 2005/04/20
[#4746] Re: Win32: Ruby & APR; build problems for Ruby Subversion SWIG bindings — Austin Ziegler <halostatue@...> 2005/04/20

On 4/20/05, Erik Huelsmann <ehuels@gmail.com> wrote:

[#4747] Re: Win32: Ruby & APR; build problems for Ruby Subversion SWIG bindings — Erik Huelsmann <ehuels@...> 2005/04/20

Hi Austin,

[#4762] Re: Win32: Ruby & APR; build problems for Ruby Subversion SWIG bindings — nobu.nokada@... 2005/04/24

Hi,

[#4783] Re: Win32: Ruby & APR; build problems for Ruby Subversion SWIG bindings — Erik Huelsmann <ehuels@...> 2005/04/25

On 4/24/05, nobu.nokada@softhome.net <nobu.nokada@softhome.net> wrote:

[#4787] Re: Win32: Ruby & APR; build problems for Ruby Subversion SWIG bindings — nobu.nokada@... 2005/04/25

Hi,

[#4794] Re: Win32: Ruby & APR; build problems for Ruby Subversion SWIG bindings — Erik Huelsmann <ehuels@...> 2005/04/25

> > > Ruby is just using AC_TYPE_UID_T. So, using typedef for them,

[#4751] Illegal regexp causes segfault — Andrew Walrond <andrew@...>

irb(main):058:0> a = /\[([^]]*)\]/

13 messages 2005/04/22

Re: [PATCH] Trivial speedup in Array#zip

From: Mauricio Fern疣dez <batsman.geo@...>
Date: 2005-04-20 08:30:18 UTC
List: ruby-core #4743
On Wed, Apr 20, 2005 at 11:12:55AM +0900, daz wrote:
> > On Wed, Apr 20, 2005 at 07:02:24AM +0900, Nobu wrote:
> > > `tmp' can be modified or stored anywhere while yielding, [...]
> >
> > I see. What about this?
> >
> > [snip "this"]
> 
> I guess Nobu's answer remains the same ?
[...] 
>   arr = []
>   [1,2,3].zip([4,5,6]){|x| arr.push(x) if x.include?(4)}
>   p arr  #-> [[1, 4]]
> 
> With your change (reusing 'tmp'), the stored reference in arr
> would dynamically change throughout the zip loop and the final
> (very incorrect) value in arr would be [[3, 6]].
> (Only one value was pushed by the code block, however, and it
> was the correct result at that time).

"this" should handle that correctly:

batsman@tux-chan:/tmp/ruby$ ./ruby
  arr = []
  [1,2,3].zip([4,5,6]){|x| arr.push(x) if x.include?(4)}
  p arr
[[1, 4]]
batsman@tux-chan:/tmp/ruby$ ruby
  arr = []
  [1,2,3].zip([4,5,6]){|x| arr.push(x) if x.include?(4)}
  p arr
[[1, 4]]


-- 
Mauricio Fern疣dez

In This Thread