ruby-changes:22729
From: drbrain <ko1@a...>
Date: Fri, 24 Feb 2012 09:11:04 +0900 (JST)
Subject: [ruby-changes:22729] drbrain:r34778 (trunk): * complex.c (Init_Complex): Document Complex::I. Patch by Sylvain
drbrain 2012-02-24 09:10:53 +0900 (Fri, 24 Feb 2012) New Revision: 34778 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=34778 Log: * complex.c (Init_Complex): Document Complex::I. Patch by Sylvain Daubert. [Feature #5623] Modified files: trunk/ChangeLog trunk/complex.c Index: complex.c =================================================================== --- complex.c (revision 34777) +++ complex.c (revision 34778) @@ -1981,6 +1981,9 @@ rb_define_method(rb_cFloat, "angle", float_arg, 0); rb_define_method(rb_cFloat, "phase", float_arg, 0); + /* + * (0+1i) + */ rb_define_const(rb_cComplex, "I", f_complex_new_bang2(rb_cComplex, ZERO, ONE)); } Index: ChangeLog =================================================================== --- ChangeLog (revision 34777) +++ ChangeLog (revision 34778) @@ -1,3 +1,8 @@ +Fri Feb 24 09:05:40 2012 Eric Hodel <drbrain@s...> + + * complex.c (Init_Complex): Document Complex::I. Patch by Sylvain + Daubert. [Feature #5623] + Fri Feb 24 08:52:09 2012 Nobuyoshi Nakada <nobu@r...> * parse.y (parser_tokadd_string, parser_yylex): insert a backslash -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/