Re: Let's use snprintf()

2008-02-06 Thread Ron Blaschke
Andy Lester wrote: On Feb 5, 2008, at 1:17 PM, [EMAIL PROTECTED] wrote: (He sent this to me directly by mistake) snprintf is problematic on older Solaris systems, for one. At least through 2.7 (2.8?) it's not included in any lib. So other apps needed to test and bring in their own version.

Re: What goes in the API?

2008-02-06 Thread Francois PERRAD
Andy Lester wrote: I had removed the PARROT_API from ld() in list.c because we don't need to offer as a public function to the user a function that computes logs base 2. fperrad reverted that because it broke make hello. It seems to me that this is backwards, just like my PARROT_APIing some

Re: Let's use snprintf()

2008-02-06 Thread Andy_Bach
Perl (5.10) seems to handle this this way, util.c: for apidoc my_snprintf The C library Csnprintf functionality, if available and standards-compliant (uses Cvsnprintf, actually). However, if the Cvsnprintf is not available, will unfortunately use the unsafe Cvsprintf which can

[perl #50554] [BUG] segfault caused by perl6

2008-02-06 Thread via RT
# New Ticket Created by Zev Benjamin # Please include the string: [perl #50554] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=50554 I unfortunately can't reduce this to a more self-contained test-case right now. I

[perl #50550] [PATCH][perl6] exponential notation for integers

2008-02-06 Thread via RT
# New Ticket Created by Zev Benjamin # Please include the string: [perl #50550] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=50550 The fix is straightforward, but this change should also be made in STD.pm. This

Re: Parrot build failure no such instruction: `trap'

2008-02-06 Thread linux454
I'm having the same problem as Walter. src/ops/core_ops.c src/ops/debug.ops: In function 'Parrot_debug_break': src/ops/debug.ops: In function 'Parrot_debug_break': src/ops/debug.ops:103: warning: null argument where non-null required (argument 2) src/ops/debug.ops:113: warning: null argument

closures and lexicals: question about PCT generated PIR.

2008-02-06 Thread Klaas-Jan Stol
Hi, I have trouble understanding how lexicals work in the code that is generated by PCT. Consider the following Lua snippet: function foo() local a = 2 function bar() print(a) end end foo() bar() What happens here is, a function foo is defined, in which a local var. a is

Re: What goes in the API?

2008-02-06 Thread Andy Lester
On Feb 6, 2008, at 5:04 AM, Francois PERRAD wrote: I agree with you, 'ld' is not a good name for a public function. It's bigger than that. We need to not be making visible a function to figure out log base 2. xoa -- Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance

Re: closures and lexicals: question about PCT generated PIR.

2008-02-06 Thread Patrick R. Michaud
On Wed, Feb 06, 2008 at 03:33:14PM +0100, Klaas-Jan Stol wrote: function foo() local a = 2 function bar() print(a) end end foo() bar() What happens here is, a function foo is defined, in which a local var. a is initialized to the value 2. Another function is

Re: [perl #50550] [PATCH][perl6] exponential notation for integers

2008-02-06 Thread Will Coleda
On Feb 5, 2008 4:41 PM, via RT Zev Benjamin [EMAIL PROTECTED] wrote: # New Ticket Created by Zev Benjamin # Please include the string: [perl #50550] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=50550 The fix is

[perl #50552] [BUG][perl6] -c and interactive mode don't mix

2008-02-06 Thread via RT
# New Ticket Created by Zev Benjamin # Please include the string: [perl #50552] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=50552 $ ./perl6 -c 1 syntax OK Cannot take substr outside string current instr.:

Re: closures and lexicals: question about PCT generated PIR.

2008-02-06 Thread Andrew Parker
Yep, this is the issue that I wrote about a couple of days ago. If you take a look at the code though, there is a point where the block for bar is being made into a closure. Take a look at sub _block14: .sub _block14 :outer(_block12) get_global $P20, _block15 newclosure $P20, $P20

Re: [svn:parrot] r25558 - in trunk: include/parrot src/pmc

2008-02-06 Thread jerry gay
On Feb 6, 2008 5:03 PM, chromatic [EMAIL PROTECTED] wrote: On Wednesday 06 February 2008 16:33:11 [EMAIL PROTECTED] wrote: +if (PARROT_ARG_SLURPY_ARRAY_ISSET(sig_item)){ +if (PARROT_ARG_NAME_ISSET(sig_item)) +

Re: [perl #50554] [BUG] segfault caused by perl6

2008-02-06 Thread Patrick R. Michaud
On Tue, Feb 05, 2008 at 07:33:46PM -0800, Zev Benjamin wrote: # New Ticket Created by Zev Benjamin # Please include the string: [perl #50554] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=50554 I

[perl #50552] [BUG][perl6] -c and interactive mode don't mix

2008-02-06 Thread Patrick R. Michaud via RT
Fixed in r25570, thanks! Pm

[perl #50552] [BUG][perl6] -c and interactive mode don't mix

2008-02-06 Thread Patrick R. Michaud via RT
Fixed in r25570, thanks! Pm