tadf
3041f60056
warn only when $VERBOSE.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-16 15:34:35 +00:00
tadf
7710478bdc
* lib/complex.rb, lib/rational.rb: added warning messages.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-16 15:18:58 +00:00
tadf
ab7baebb6d
* complex.c: edited rdoc.
...
* rational.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-19 21:57:51 +00:00
tadf
31eacb6ed1
* lib/complex.rb: provides some obsolate methods.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-20 22:55:59 +00:00
tadf
9467d7a024
* complex.c: an instance method image has been removed and
...
uses "imag" instead of "image".
* complex.c: two instance method re and im are removed.
* rational.c: follows the above changes.
* include/ruby/ruby.h: ditto.
* gc.c: ditto.
* lib/cmath.rb: ditto.
* lib/mathn.rb: ditto.
* lib/complex.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-20 22:49:56 +00:00
tadf
f2cb79ffee
* complex.c: uses f_(in)?exact_p macro.
...
* rational.c: ditto.
* bignum.c (rb_big_pow): bignum**bignum - should calculate without
rational.
* lib/complex.rb: should override Math module at most once.
* lib/mathn.rb: requires 'cmath' directly.
-この行以下は無視されます --
M complex.c
M ChangeLog
M lib/mathn.rb
M lib/complex.rb
M bignum.c
M rational.c
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-19 13:55:52 +00:00
tadf
8f40b26581
* complex.c (nucomp_div): now behaves as quo.
...
* complex.c (nucomp_s_generic_p): has been removed.
* complex.c (nucomp_to_s): adopts new form.
* complex.c (nucomp_inspect): ditto.
* complex.c (string_to_c_internal): ditto and supports polar form.
* complex.c (rb_complex_polar): new.
* rational.c (nurat_to_s): did not canonicalize.
* rational.c (nurat_inspect): adopts new form.
* rational.c (string_to_r_internal): ditto.
* include/ruby/intern.h: added a declaration.
* lib/complex.rb: added an obsolate class method.
* lib/cmath.rb: use scalar? instead of generic?.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-22 12:27:54 +00:00
matz
298d20c25b
* lib/complex.rb: remove Math first before overwriting by CMath.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15926 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-08 02:01:07 +00:00
tadf
968e827e15
lib/complex.rb depends lib/cmath.rb.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-05 14:26:43 +00:00
tadf
c08b5dfb81
* lib/cmath.rb: new.
...
* lib/complex.rb: depends lib/cmath.rb.
* lib/rational.rb: added rdiv.
* complex.c: removed some math functions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-05 14:25:40 +00:00
matz
ef260b085e
revert git backfire in r15860; sorry
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-30 15:00:12 +00:00
matz
3730710d79
* proc.c (proc_dup): should copy is_lambda attribute as well.
...
[ruby-talk:296244]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-30 14:50:55 +00:00
tadf
d4f5cb67d4
* complex.c (f_lcm): removed.
...
* rational.c (rb_lcm, rb_gcdlcm): added.
* lib/complex.rb (gcd, lcm, gcdlcm): removed.
* lib/rational.rb (gcd, lcm, gcdlcm): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-27 11:48:00 +00:00
tadf
6125552c27
both complex and rational are now builtin classes.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-16 00:23:43 +00:00
tadf
2b72892ac0
* lib/rational.rb (floor, ceil, truncate, round): do not use
...
definitions of Numeric.
* lib/rational.rb (to_i): should returns truncated self.
* lib/complex.rb (numerator): requires
Integer#{numerator,denominator}.
* lib/complex.rb (quo): do not use definition of Numeric.
* lib/complex.rb (>, >=, <, <=, between?, div, divmod, modulo,
floor, ceil, truncate, round): undef'ed.
* lib/mathn.rb (Rational#inspect): removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-12 11:47:12 +00:00
akr
6cdef2dc7e
* $Date$ keyword removed to avoid inclusion of locale dependent
...
string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-06 15:49:38 +00:00
keiju
e6140f3e3c
* lib/complex.rb: be able to create Complex(0, -0.0). [ruby-list:44268]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-26 04:33:21 +00:00
matz
c09cea5e1b
* object.c (rb_mod_attr): make Module#attr to be an alias to
...
attr_reader. [RCR#331]
* ruby.h: export classes/modules to implement sandbox.
[ruby-core:08283]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-20 17:36:36 +00:00
matz
da32ce1a67
* sprintf.c (rb_f_sprintf): [ruby-dev:27967]
...
* range.c (range_include): use discrete membership for non Numeric
values, for example, String.
* numeric.c (num_scalar_p): new method. [ruby-dev:27936]
* lib/complex.rb (Complex#scalar?): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-07 08:41:59 +00:00
matz
cced56ef7c
* misc/ruby-mode.el (ruby-expr-beg): support $! at the end of
...
expression. [ruby-dev:27868]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-30 04:50:04 +00:00
matz
5b9afca5e4
* numeric.c (rb_num_coerce_relop): export function.
...
* marshal.c (w_object): check has been dropped. "_dump must return
string." [ruby-dev:21024]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-31 08:42:44 +00:00
matz
37b2487c70
* lib/net/smtp.rb (Net::SMTP::send0): add taint check.
...
* ruby.h (LLONG_MIN): wrong value.
* io.c (rb_f_getc): $stdin may not be IO. [ruby-dev:20973]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-29 07:52:55 +00:00
matz
f0b77b0cde
* ext/tk/lib/tk.rb (TkCore::chooseDirectory): back up wrongly
...
removed method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-26 15:03:16 +00:00
matz
1edc2ccc44
remove debug message
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-25 05:38:13 +00:00
matz
0d1df1cd7d
* variable.c (rb_mod_const_missing): new method. [ruby-core:00441]
...
* variable.c (rb_const_get_at): allow "const_missing" hook.
* variable.c (rb_const_get_0): ditto.
* eval.c (method_missing): rename from rb_undefined to clarify.
* eval.c (ruby_finalize_0): update exit status if any of END proc
raises SystemExit. [ruby-core:01256]
* eval.c (rb_exec_end_proc): reduce rb_protect().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-22 08:42:47 +00:00
matz
8cee72d5c6
* eval.c (rb_clear_cache_by_class): check both klass and origin.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-17 08:58:16 +00:00
dave
caea614d4a
Re-expose Complex.new as .new! (Kernel#Complex needs to call _something_ :)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-24 20:25:45 +00:00
matz
1de4203c51
* lib/cgi.rb (CGI::QueryExtension::[]): always return Value
...
object.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-23 06:31:29 +00:00
matz
94f40186c0
* io.c (rb_io_fread): may lose data on nonblocking read.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-23 15:38:44 +00:00
matz
117b4df7c7
* lib/complex.rb (Complex#==): should not raise error by type
...
mismatch.
* lib/rational.rb (Rational#==): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-06 09:49:12 +00:00
gsinclair
c46774cdb3
Added RDoc comments. See comments at EOF for remaining issues.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-04 03:47:42 +00:00
matz
34f5c4061c
* range.c (range_step): iteration done using "+" if elements are
...
Numeric. Otherwise using "succ".
* range.c (range_each): iteration done using "succ". If the
elements does not respond to "succ", raise TypeError. As a
result, all Enumerable methods, e.g. collect, require elements
to respond to "succ'.
* range.c (range_member): comparison done using "each", if
elements are non-Numeric or no-"succ" objects. Otherwise
compare using "<=>".
* range.c (Init_Range): remove "size" and "length".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-05-30 06:12:29 +00:00
matz
b134b91278
* various files: macro fix-up by Michal Rokos.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-25 13:57:01 +00:00
matz
959d5febcf
* class.c (rb_mod_clone): should not copy class name, since clone
...
should remain anonymous.
* eval.c (rb_call0): self in a block given to define_method now be
switched to the receiver of the method.
* eval.c (proc_invoke): added new parameter to allow self
switching.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-10-22 06:48:18 +00:00
matz
5f877e8431
* string.c (rb_str_index): wrong increment for non alphanumeric
...
string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-10-16 03:27:23 +00:00
matz
c67251edb4
matz
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-08-07 05:05:04 +00:00
matz
741ca76912
matz
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-07-18 06:00:45 +00:00
matz
dde62bcd2e
2000-01-17
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-01-17 08:37:53 +00:00
matz
65a5162550
1.4.0
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1999-08-13 05:45:20 +00:00
matz
210367ec88
This commit was generated by cvs2svn to compensate for changes in r372,
...
which included commits to RCS files with non-trunk default branches.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@373 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1999-01-20 04:59:39 +00:00
matz
3db12e8b23
Initial revision
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1998-01-16 12:13:05 +00:00