Re: [perl #30528] [PATCH] String PMC with iterator

2005-10-03 Thread Ion Alexandru Morega
On Oct 3, 2005, at 1:09 PM, Joshua Hoblitt via RT wrote: [EMAIL PROTECTED] - Tue Jun 29 05:14:34 2004]: This is the latest version of the String PMC, complete with iterators. In my understanding, the default implementation of morph() would check if the new class number is the same as

Re: [perl #31949] [TODO] finhish complex PMC

2004-10-14 Thread Ion Alexandru Morega
Leopold Toetsch wrote: The Complex PMC arithmetic MMD vtables (add, subtract, divide) blindly assume that the RHS argument Cvalue is complex too. This needs fixing and tests. Fixed, tested. (the tests were there, only commented out) I only added implementations for MMD_Complex and MMD_DEFAULT. I

Re: [perl #30560] [PATCH] classes/complex.pmc: void function can't return a value

2004-07-02 Thread Ion Alexandru Morega
Andy Dougherty wrote: The Solaris compiler complained when classes/complex.c tried to return a value from a void function. This patch assumes the function indeed is intended to be void and no return value is needed. You're right, it slipped. We really need compiler flags to catch these. Still, it

Re: GMP's license looks Parrot-compatible

2004-06-30 Thread Ion Alexandru Morega
I haven't read the LGPL carefully, but there is one point i'd like to make. Scott Bronson wrote: ASSUMPTION Parrot will only link to the GMP library, right? Either static or shared, doesn't matter. It would certainly work that way, but there are advantages in including the source code: - We

Re: GMP's license looks Parrot-compatible

2004-06-30 Thread Ion Alexandru MOREGA
Scott Bronson wrote: On Wed, 2004-06-30 at 00:14, Ion Alexandru Morega wrote: ... there are advantages in including the source code: - GMP's compilation process is aware of the machine's hardware, making optimisations accordingly. It should be compiled along with parrot, for better

Re: Some tasks for the interested

2004-06-28 Thread Ion Alexandru Morega
Jonathan Worthington wrote: Leopold Toetsch [EMAIL PROTECTED] wrote: 1) Python has a complex builtin class. So we'll need one too. * Create a complex PMC. * Parse complex constants '4j' j? I've always used i as the imaginary unit, though I believe j is used more in engineering fields ('cus

Re: Some tasks for the interested

2004-06-28 Thread Ion Alexandru MOREGA
Dan Sugalski wrote: Cool, go for it. I'd think that for the set_(integer|number) vtable slots we'd set the real part and make the imaginary part 0, while the string version'd look for the x + yi version. And have set_num_keyed set the real and the imaginary part (indexed as strings, say real and

Re: [perl #30444] [PATCH] string.pmc

2004-06-25 Thread Ion Alexandru Morega
Leopold Toetsch wrote: Ion Alexandru Morega [EMAIL PROTECTED] wrote: ... then i'll rewrite perlstring.pmc and possibly the other perlscalar subclasses (derive them from Float, Integer, etc) if that's needed. I think, we should have scalar Integer Boolean PerlInt Float PerlNum

Re: Another small task for the interested

2004-06-24 Thread Ion Alexandru Morega
Dan Sugalski wrote: On Sun, 20 Jun 2004, Ion Alexandru Morega wrote: Dan Sugalski wrote: I checked in more of PDD 17, detailing parrot's base types. Some of those types definitely don't exist (like, say, the string and bignum type...) and could definitely use implementing. Should be fairly

Re: Another small task for the interested

2004-06-20 Thread Ion Alexandru Morega
Dan Sugalski wrote: I checked in more of PDD 17, detailing parrot's base types. Some of those types definitely don't exist (like, say, the string and bignum type...) and could definitely use implementing. Should be fairly straightforward, and would be a good way to get up to speed on writing