[#11680] fork_and_kill_other_threads — "NAKAMURA, Hiroshi" <nakahiro@...>

なひです。[ruby-list:26165]からもって来ました。

27 messages 2000/12/02
[#11681] Re: fork_and_kill_other_threads — Masatoshi SEKI <m_seki@...> 2000/12/02

[#11682] Re: fork_and_kill_other_threads — matz@... (Yukihiro Matsumoto) 2000/12/02

まつもと ゆきひろです

[#11685] Re: fork_and_kill_other_threads — nobu.nakada@... 2000/12/03

なかだです。

[#11687] Re: fork_and_kill_other_threads — matz@... (Yukihiro Matsumoto) 2000/12/03

まつもと ゆきひろです

[#11708] Re: fork_and_kill_other_threads — Kazuhiro NISHIYAMA <zn@...> 2000/12/06

On Sun, 3 Dec 2000 23:33:41 +0900

[#11709] Re: fork_and_kill_other_threads — matz@... (Yukihiro Matsumoto) 2000/12/06

まつもと ゆきひろです

[#11710] Re: fork_and_kill_other_threads — "NAKAMURA, Hiroshi" <nakahiro@...> 2000/12/06

なひです。

[#11713] Re: fork_and_kill_other_threads — matz@... (Yukihiro Matsumoto) 2000/12/06

まつもと ゆきひろです

[#11716] Re: fork_and_kill_other_threads — "NAKAMURA, Hiroshi" <nakahiro@...> 2000/12/06

なひです。

[#11718] Re: fork_and_kill_other_threads — matz@... (Yukihiro Matsumoto) 2000/12/06

まつもと ゆきひろです

[#11722] Re: fork_and_kill_other_threads — "NAKAMURA, Hiroshi" <nakahiro@...> 2000/12/07

なひです。

[#11733] Ruby I18N 改め M17N — とみたまさひろ <tommy@...>

とみたです。

17 messages 2000/12/07
[#11735] Re: Ruby I18N 改め M17N — matz@... (Yukihiro Matsumoto) 2000/12/08

まつもと ゆきひろです

[#11751] Re: Ruby I18N 改め M17N — とみたまさひろ <tommy@...> 2000/12/13

とみたです。

[#11752] Re: Ruby I18N 改め M17N — matz@... (Yukihiro Matsumoto) 2000/12/13

まつもと ゆきひろです

[#11789] mswin32 [Q & patch] mkmf.rb — "U.Nakamura" <usa@...>

こんにちは、なかむら(う)です。

14 messages 2000/12/18
[#11790] Re: mswin32 [Q & patch] mkmf.rb — "Nobuyoshi.Nakada" <nobu.nakada@...> 2000/12/19

なかだです。

[#11848] Where'd all the Ruby's history gone? — "Akinori MUSHA" <knu@...>

 さっき気付いたんですが、 Ruby のレポジトリから過去分がごっそり

27 messages 2000/12/25
[#11853] Re: Where'd all the Ruby's history gone? — matz@... (Yukihiro Matsumoto) 2000/12/26

まつもと ゆきひろです

[#11861] Re: Where'd all the Ruby's history gone? — Kazuhiro NISHIYAMA <zn@...> 2000/12/26

On Tue, 26 Dec 2000 14:58:07 +0900

[#11862] Re: Where'd all the Ruby's history gone? — matz@... (Yukihiro Matsumoto) 2000/12/26

まつもと ゆきひろです

[#11869] Re: Where'd all the Ruby's history gone? — "Akinori MUSHA" <knu@...> 2000/12/26

At Tue, 26 Dec 2000 17:44:57 +0900,

[#11894] Re: Where'd all the Ruby's history gone? — Kazuhiro NISHIYAMA <zn@...> 2000/12/29

On Tue, 26 Dec 2000 21:24:19 +0900

[#11895] Re: Where'd all the Ruby's history gone? — "Akinori MUSHA" <knu@...> 2000/12/29

At Fri, 29 Dec 2000 18:56:03 +0900,

[#11896] Re: Where'd all the Ruby's history gone? — Kazuhiro NISHIYAMA <zn@...> 2000/12/29

On Fri, 29 Dec 2000 19:07:12 +0900

[#11852] local variable extent problem? — Tanaka Akira <akr@...17n.org>

どうも、Ruby のバグのような気がするものを見つけたのですが、もしかした

21 messages 2000/12/26
[#11855] Re: local variable extent problem? — matz@... (Yukihiro Matsumoto) 2000/12/26

まつもと ゆきひろです

[#11857] Re: local variable extent problem? — Tanaka Akira <akr@...17n.org> 2000/12/26

In article <977817486.100168.31162.nullmailer@ev.netlab.zetabits.com>,

[#11859] Re: local variable extent problem? — matz@... (Yukihiro Matsumoto) 2000/12/26

まつもと ゆきひろです

[#11860] Re: local variable extent problem? — Tanaka Akira <akr@...17n.org> 2000/12/26

In article <977819010.870991.31953.nullmailer@ev.netlab.zetabits.com>,

[#11863] Re: local variable extent problem? — matz@... (Yukihiro Matsumoto) 2000/12/26

まつもと ゆきひろです

[#11865] Re: local variable extent problem? — "Akinori MUSHA" <knu@...> 2000/12/26

At Tue, 26 Dec 2000 17:50:11 +0900,

[#11874] Re: local variable extent problem? — matz@... (Yukihiro Matsumoto) 2000/12/26

まつもと ゆきひろです

[ruby-dev:11900] [PATCH] id2ref for Symbol

From: nobu.nakada@...
Date: 2000-12-30 04:36:35 UTC
List: ruby-dev #11900
~~~~~~

  ObjectSpace::_id2ref(:-.__id__) == :- ~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~

  ruby -e 'p ObjectSpace::_id2ref(8)'
  -e:1:in `_id2ref': 0x10 is not id value (RangeError)

  ~~ parse.y ~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~


Index: gc.c
===================================================================
RCS file: /ruby/ruby/gc.c,v
retrieving revision 1.51
diff -u -2 -p -r1.51 gc.c
--- gc.c	2000/12/29 18:23:22	1.51
+++ gc.c	2000/12/30 03:03:38
@@ -1264,16 +1264,20 @@ id2ref(obj, id)
 
     rb_secure(4);
-    ptr = NUM2UINT(id);
-    if (FIXNUM_P(ptr)) return (VALUE)ptr;
-    if (ptr == Qtrue) return Qtrue;
-    if (ptr == Qfalse) return Qfalse;
-    if (ptr == Qnil) return Qnil;
+    ptr = id;
+    id = NUM2UINT(id);
+    if (FIXNUM_P(id)) return id;
+    if (id == Qtrue) return Qtrue;
+    if (id == Qfalse) return Qfalse;
+    if (id == Qnil) return Qnil;
+    if (IMMEDIATE_P(id)) {
+	if (SYMBOL_P(id) && rb_id2name(SYM2ID(id))) return id;
+	rb_raise(rb_eRangeError, "0x%x is unknown immediate", id);
+    }
 
-    ptr = id ^ FIXNUM_FLAG;	/* unset FIXNUM_FLAG */
     if (!is_pointer_to_heap(ptr)) {
-	rb_raise(rb_eRangeError, "0x%x is not id value", ptr);
+	rb_raise(rb_eRangeError, "0x%x is not id value", id);
     }
     if (BUILTIN_TYPE(ptr) == 0) {
-	rb_raise(rb_eRangeError, "0x%x is recycled object", ptr);
+	rb_raise(rb_eRangeError, "0x%x is recycled object", id);
     }
     return (VALUE)ptr;
Index: parse.y
===================================================================
RCS file: /ruby/ruby/parse.y,v
retrieving revision 1.77
diff -u -2 -p -r1.77 parse.y
--- parse.y	2000/12/28 05:00:39	1.77
+++ parse.y	2000/12/30 03:36:47
@@ -4785,11 +4785,6 @@ static struct {
     tDOT2,	"..",
     tDOT3,	"...",
-    '+',	"+",
-    '-',	"-",
     '+',	"+(binary)",
     '-',	"-(binary)",
-    '*',	"*",
-    '/',	"/",
-    '%',	"%",
     tPOW,	"**",
     tUPLUS,	"+@",
@@ -4797,11 +4792,6 @@ static struct {
     tUPLUS,	"+(unary)",
     tUMINUS,	"-(unary)",
-    '|',	"|",
-    '^',	"^",
-    '&',	"&",
     tCMP,	"<=>",
-    '>',	">",
     tGEQ,	">=",
-    '<',	"<",
     tLEQ,	"<=",
     tEQ,	"==",
@@ -4810,6 +4800,4 @@ static struct {
     tMATCH,	"=~",
     tNMATCH,	"!~",
-    '!',	"!",
-    '~',	"~",
     '!',	"!(unary)",
     '~',	"~(unary)",
@@ -4822,5 +4810,4 @@ static struct {
     tCOLON2,	"::",
     tCOLON3,	"::",
-    '`',	"`",
     0,		0,
 };
@@ -4838,4 +4825,6 @@ Init_sym()
 }
 
+#define ASCII_SYMBOL_P(c) (isascii(c) && !ISALPHA(c))
+
 ID
 rb_intern(name)
@@ -4846,4 +4835,7 @@ rb_intern(name)
     int last;
 
+    if (!name[0]) return 0;
+    if (!name[1] && ASCII_SYMBOL_P(name[0])) return toascii(name[0]);
+
     if (st_lookup(sym_tbl, name, &id))
 	return id;
@@ -4909,4 +4901,10 @@ rb_id2name(id)
 {
     char *name;
+
+    if (ASCII_SYMBOL_P(id)) {
+	static char name[128][2];
+	name[id][0] = (char)id;
+	return name[id];
+    }
 
     if (id < LAST_TOKEN) {


-- 
--- ~~~~Bug~~~~
--- ~~~~~Bug~~~~~
    ~~ ~~

In This Thread

Prev Next