[#8824] [REQ] Integer#{hex,dec,oct,bin}, String#bin — gotoken@... (GOTO Kentaro)

ごとけんです

38 messages 2000/01/05
[#8839] Re: [REQ] Integer#{hex,dec,oct,bin}, String#bin — matz@... (Yukihiro Matsumoto) 2000/01/06

まつもと ゆきひろです

[#8842] Re: [REQ] Integer#{hex,dec,oct,bin}, String#bin — gotoken@... (GOTO Kentaro) 2000/01/06

ごとけんです

[#8843] Re: [REQ] Integer#{hex,dec,oct,bin}, String#bin — matz@... (Yukihiro Matsumoto) 2000/01/06

まつもと ゆきひろです

[#8844] Re: [REQ] Integer#{hex,dec,oct,bin}, String#bin — gotoken@... (GOTO Kentaro) 2000/01/06

ごとけんです

[#8846] Re: [REQ] Integer#{hex,dec,oct,bin}, String#bin — matz@... (Yukihiro Matsumoto) 2000/01/06

まつもと ゆきひろです

[#8847] Re: [REQ] Integer#{hex,dec,oct,bin}, String#bin — gotoken@... (GOTO Kentaro) 2000/01/06

ごとけんです

[#8893] Re: [ruby-list:20142] Re: Range expansion? — Akinori MUSHA aka knu <knu@...>

 knuです。ruby-listから舞台を移しました。

13 messages 2000/01/09

[#8980] 1.4.3 patch for near-future *BSD IPv6 support — Jun-ichiro itojun Hagino <itojun@...>

近い将来の{Net,Free,Open}BSDにはKAME IPv6 stackが統合されています。

17 messages 2000/01/20
[#8981] Re: 1.4.3 patch for near-future *BSD IPv6 support — Jun-ichiro itojun Hagino <itojun@...> 2000/01/20

> それから、

[ruby-dev:8954] Re: rb_str2inum()

From: matz@... (Yukihiro Matsumoto)
Date: 2000-01-18 07:22:46 UTC
List: ruby-dev #8954
まつもと ゆきひろです

In message "[ruby-dev:8953] rb_str2inum()"
    on 00/01/18, "Shigeo Kobayashi" <shigeo@tinyforest.gr.jp> writes:

|「rb_str2inum()の仕様が1.5.0で変更になった」ということを小耳に
|挟みましたが本当でしょうか?

本当です。

|本当ならrb_str2inum()を使用している拡張ライブラリ等は、
|1.4系と1.5系共に動作させるにはどうしたらよいのでしょうか?

# 使ってるのがあったのか...

とりあえず以下のようなものはどうでしょう。

 #include "version.h"

 #if RUBY_VERSION_CODE > 150
 # define rb_str2inum rb_cstr2inum
 #endif 

で、本体では rb_str2inum を使うと。

In This Thread