[perl #48120] [TODO] [C] Remove nonportable signbit code from perlnum.pmc

2007-12-04 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #48120] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=48120 In languages/perl5/src/pmc/perlnum.pmc:get_string() there is the todo item: /*

perlnum.pmc

2003-08-14 Thread Benjamin Goldberg
Shouldn't the get_number() method use string_from_num, instead of calling sprintf/snprintf? -- $a=24;split//,240513;s/\B/ = /for@@=qw(ac ab bc ba cb ca );{push(@b,$a),($a-=6)^=1 for 2..$a/6x--$|;print [EMAIL PROTECTED] ]\n;((6=($a-=6))?$a+=$_[$a%6]-$a%6:($a=pop @b))redo;}

Re: perlnum.pmc

2003-08-07 Thread Simon Glover
On Thu, 7 Aug 2003, Benjamin Goldberg wrote: Shouldn't the get_number() method use string_from_num, instead of calling sprintf/snprintf? I've just tried this, and a number of tests break. There seem to be two main reasons. Firstly, some tests were assuming that stringified PerlNums would

[PATCH classes/perlnum.pmc] Use C please, not C++.

2001-11-28 Thread Andy Dougherty
diff -r -u parrot-current/classes/perlnum.pmc parrot-andy/classes/perlnum.pmc --- parrot-current/classes/perlnum.pmc Sun Nov 25 23:58:52 2001 +++ parrot-andy/classes/perlnum.pmc Wed Nov 28 11:23:43 2001 @@ -74,7 +74,7 @@ } void set_integer (PMC* value) { -//SELF-vtable

Re: [PATCH classes/perlnum.pmc] Use C please, not C++.

2001-11-28 Thread Michael Maraist
While your point is taken, it's hardly considered C++ anymore. Many C-compilers have adopted many such useful features. On Wed, 28 Nov 2001, Andy Dougherty wrote: diff -r -u parrot-current/classes/perlnum.pmc parrot-andy/classes/perlnum.pmc void set_integer (PMC* value

Re: [PATCH classes/perlnum.pmc] Use C please, not C++.

2001-11-28 Thread Andy Dougherty
On Wed, 28 Nov 2001, Michael Maraist wrote: While your point is taken, it's hardly considered C++ anymore. Many C-compilers have adopted many such useful features. Your point is also taken, but Useful feature originating in C++ but since adapted by many (but not all) ANSI compilers and hence

Re: [PATCH classes/perlnum.pmc] Use C please, not C++.

2001-11-28 Thread H . Merijn Brand
no gcc. On Wed, 28 Nov 2001, Andy Dougherty wrote: diff -r -u parrot-current/classes/perlnum.pmc parrot-andy/classes/perlnum.pmc void set_integer (PMC* value) { -//SELF-vtable = (Parrot_base_vtables[enum_class_PerlInt]); + /* SELF-vtable = (Parrot_base_vtables