Re: Segfault on Win32, the

2003-12-08 Thread Leopold Toetsch
Vladimir Lipsky [EMAIL PROTECTED] wrote: Some time ago I mentioned I'd been gettin' one more segfault while the Parrot debug mode was on. In fact, it proved to be an effect of the same cause -- we have global resources sharable among interpreters, that we try to free more than once. This time

Re: Segfault on Win32, the

2003-12-08 Thread Vladimir Lipsky
From: Leopold Toetsch [EMAIL PROTECTED] Did you recheck that after my fix to vtable freeing? My patch covered encoding and chartype too. No, I didn't. Did you fix the Parrot_loadbc function name? If didn't, I'll have a go for Parrot_set_PackFile() leo 0x4C56 Happy .~.

Re: get_pmc_keyed() in PerlString?

2003-12-08 Thread Dan Sugalski
At 9:04 PM +0100 12/2/03, Sterling Hughes wrote: Hey, I'm right now looking at getting a proper implementation of array/string offsets done for the PHP compiler. Here's the problem, in PHP you can access indices of both string's an array's in the same way, meaning: [Snip PHP treating strings as

Re: Sorry 'bout the object delay

2003-12-08 Thread Dan Sugalski
At 3:29 PM +0100 12/7/03, Leopold Toetsch wrote: Dan Sugalski [EMAIL PROTECTED] wrote: I got mugged by the flu, [ ... ] [ ... ] Objects'll be the death of me, I swear... I don't hope, that this is anyhow related to my checkins, Nah--objects just hate me. :) --

Re: [RfC] Testing for null

2003-12-08 Thread Dan Sugalski
At 1:21 PM -0500 12/3/03, Melvin Smith wrote: We should have 1 recommended way for testing NULL registers. If we support get_bool() then lets make sure it works for REAL NULL pmc registers as well as PMCNULL. If not, code will appear to work correctly on a safe core but will seg fault on some

Re: Determining PMC memory addresses

2003-12-08 Thread Dan Sugalski
At 9:18 AM -0700 12/3/03, Cory Spencer wrote: We're already using 'eq' to perform equality testing, and in the interests of maintaining a consistent design I would choose to stick with something eq-related as opposed to changing it to 'same'. eqaddr/eqval? eq_addr/eq_val?

Re: Missing branch instructions?

2003-12-08 Thread Dan Sugalski
At 12:15 PM +0100 12/7/03, Leopold Toetsch wrote: Pete Lomax [EMAIL PROTECTED] wrote: ... only to find there are no such equivalents for ne, gt, and ge. I've added these missing ops now. *But* there are a lot more missing: Yeah, we need all the comparison operators for PMCs in both numeric and

Re: Missing branch instructions?

2003-12-08 Thread Pete Lomax
On Mon, 8 Dec 2003 11:35:59 -0500, Dan Sugalski [EMAIL PROTECTED] wrote: At 12:15 PM +0100 12/7/03, Leopold Toetsch wrote: Pete Lomax [EMAIL PROTECTED] wrote: ... only to find there are no such equivalents for ne, gt, and ge. I've added these missing ops now. *But* there are a lot more

Re: Missing branch instructions?

2003-12-08 Thread Luke Palmer
Pete Lomax writes: I'm not convinced at all here. PMC comparison ops, afaict, are based solely on the pmc instance/address Here's a snippet to play with: $P1 = new Array $P1 = 2 $P1[0] = 1 $P1[1] = 1 $P2 = new Array $P2 = 2 $P2[0] = 1

Re: [RfC] Testing for null

2003-12-08 Thread Gordon Henriksen
On Monday, December 8, 2003, at 10:03 , Dan Sugalski wrote: At 1:21 PM -0500 12/3/03, Melvin Smith wrote: We should have 1 recommended way for testing NULL registers. If we support get_bool() then lets make sure it works for REAL NULL pmc registers as well as PMCNULL. If not, code will appear