るりまサーチ

最速Rubyリファレンスマニュアル検索!
117件ヒット [101-117件を表示] (0.048秒)

別のキーワード

  1. openssl integer
  2. asn1 integer
  3. _builtin integer
  4. integer chr
  5. integer new

ライブラリ

クラス

検索結果

<< < 1 2 >>

ruby 1.8.4 feature (30.0)

ruby 1.8.4 feature ruby 1.8.4 での ruby 1.8.3 からの変更点です。

...8.4 (2005-12-22) [i686-linux]
-:2: syntax error, unexpected tSTRING_CONTENT
alias :"foo" :"bar"
^

-:2: warning: unused literal ignored
# => ruby 1.9.0 (2005-12-10) [i686-linux]
"bar"...
...すると、それ以降の
バックトラックが効かなくなるバグの修正。((<ruby-list:41328>))

p(/^[a-z]+x[0-9]+$/ =~ "hogex111")
p(/^[\x61-\x7a]+x[0-9]+$/ =~ "hogex111")

# => ruby 1.8.3 (2005-09-21) [i686-linux]
0
nil
#...
...:35 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
#
# * sprintf.c (rb_str_format): integer overflow check added.
#
# * sprintf.c (GETASTER): ditto.

printfのフォーマット指定子にinteger overflowのバグがありました。
perl のそれとは違い、セキュリテ...

Marshal フォーマット (12.0)

Marshal フォーマット フォーマットバージョン 4.8 を元に記述しています。

...| n1) &
(0xffff00ff | n2 * 0x100) &
(0xff00ffff | n3 * 0x10000) &
(0x00ffffff | n4 * 0x1000000)
# p "%x" % n
n = -((n ^ 0xffff_ffff) + 1) if len < 0
n
end

p Marshal.dump(-125).unpack("x2 acC*") # => ["i", -1, 131]
p foo(-1, 131) # => -125...
...Array # (or String, Regexp, Hash)
end
p Marshal.dump(Foo.new([nil])).unpack("x2 a a c a3 aca*")
# => ["C", ":", 8, "Foo", "[", 6, "0"]
# ^^^ (or '"', '/', '{')
//}

==== String, Regexp, Array, Hash のサブクラス (インスタンス変数あり)

'I' で始まるデータ...
...存はなくなりました。

=== Bignum

'l' で始まるデータ構造になります。

32ビット環境で内部的に Bignum になる Integer
64ビット環境で Marshal.dump しても、この形式になります。

//emlist{
| 'l' | '+'/'-' | shortの個数(Fixnum形式) | ... |...
<< < 1 2 >>