[#1320] [MethodIndex] Bug and question — keiju@... (Keiju ISHITSUKA)

けいじゅ@日本ラショナルソフトウェアです.

32 messages 1998/01/23
[#1321] Re: [MethodIndex] Bug and question — matz@... (Yukihiro Matsumoto) 1998/01/23

まつもと ゆきひろです

[#1323] Re: [MethodIndex] Bug and question — keiju@... (Keiju ISHITSUKA) 1998/01/23

けいじゅ@日本ラショナルソフトウェアです.

[#1332] Re: [MethodIndex] Bug and question — keiju@... (Keiju ISHITSUKA) 1998/01/27

けいじゅ@日本ラショナルソフトウェアです.

[#1333] Re: [MethodIndex] Bug and question — matz@... (Yukihiro Matsumoto) 1998/01/27

まつもと ゆきひろです

[#1334] Re: [MethodIndex] Bug and question — keiju@... (石塚圭樹 ) 1998/01/27

けいじゅ@日本ラショナルソフトウェアです.

[#1351] Re: [MethodIndex] Bug and question — keiju@... (石塚圭樹 ) 1998/01/29

けいじゅ@日本ラショナルソフトウェアです.

[#1353] Re: [MethodIndex] Bug and question — matz@... (Yukihiro Matsumoto) 1998/01/29

まつもと ゆきひろです

[#1354] Re: [MethodIndex] Bug and question — keiju@... (石塚圭樹 ) 1998/01/29

けいじゅ@日本ラショナルソフトウェアです.

[#1355] Re: [MethodIndex] Bug and question — matz@... (Yukihiro Matsumoto) 1998/01/30

まつもと ゆきひろです

[ruby-dev:1310] Re: subregex without backreference does not work

From: matz@... (Yukihiro Matsumoto)
Date: 1998-01-21 08:08:36 UTC
List: ruby-dev #1310
まつもと ゆきひろです

In message "[ruby-dev:1309] subregex without backreference does not work"
    on 98/01/21, KIMURA Koichi <kkimura@pure.cpdc.canon.co.jp> writes:

|木村です。
|
|1.1b5で後方参照なしのグルーピングを使うと
|
|  /foo(?:bar)/ =~ "foobar"
|
|retest.rb:1: unmatched (: /foo(?:bar)/
|
|のようにエラーになります(cygwin32, mswin32で確認)。

確かにそうですね.すいません.
パッチは無駄なpopを省く方が良いと思いました.

--- regex.c	1998/01/16 12:19:12	1.1.1.2
+++ regex.c	1998/01/21 08:02:54
@@ -1400,2 +1400,3 @@
 	      BUFPUSH(stackp[-1]);
+	      stackp--;
 	      break;
@@ -1414,2 +1415,3 @@
 	      BUFPUSH(0);
+	      stackp--;
 	      break;
@@ -1420,3 +1422,2 @@
 	  }
-	  stackp--;
 	  begalt = *--stackp + bufp->buffer;

In This Thread

Prev Next