[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Odd break behavior?

ts

2/18/2006 6:02:00 PM

>>>>> "Y" == Yukihiro Matsumoto <matz@ruby-lang.org> writes:

Y> It seems to be a bug. Thank you for finding it. It's too complex to
Y> fix it in a minute.

moulon% diff -u eval.c~ eval.c
--- eval.c~ 2005-12-20 14:41:47.000000000 +0100
+++ eval.c 2006-02-18 18:46:29.000000000 +0100
@@ -752,7 +752,7 @@
#define BLOCK_LAMBDA 2

static struct BLOCK *ruby_block;
-static unsigned long block_unique = 0;
+static unsigned long block_unique = 1;

#define PUSH_BLOCK(v,b) do { struct BLOCK _block; moulon%

no ?


Guy Decoux



1 Answer

Yukihiro Matsumoto

2/20/2006 12:50:00 AM

0

Hi,

In message "Re: Odd break behavior?"
on Sun, 19 Feb 2006 03:02:04 +0900, ts <decoux@moulon.inra.fr> writes:

|-static unsigned long block_unique = 0;
|+static unsigned long block_unique = 1;

| no ?

Yes! You must be a genius. Thank you.

matz.