Re: Basics of the base PMC class set

2004-06-24 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: > At 2:38 PM +0200 6/11/04, Bernhard Schmalhofer wrote: >>how about having complex numbers as another basic PMC? >>At least QCL, http://tph.tuwien.ac.at/~oemer/qcl.html, C99 and PDL, >>http://pdl.perl.org/, have them as a basic type. As well as Python. > F

Re: Basics of the base PMC class set

2004-06-11 Thread Dan Sugalski
At 12:57 PM -0500 6/11/04, Matt Fowles wrote: All~ Are you suggesting that these things use the PMC classes for String|Integer|Float or should they use STRING|INTVAL|FLOATVAL? Externally? They should use the classes. When you do a get_pmc_keyed from a StringArray, the result should be a String PM

Re: Basics of the base PMC class set

2004-06-11 Thread Matt Fowles
All~ Are you suggesting that these things use the PMC classes for String|Integer|Float or should they use STRING|INTVAL|FLOATVAL? Also, looking through CVS there appears to already be array.pmc -- basic resizable array floatvalarray.pmc -- Array of FLOATVALs intlist.pmc -- Array of intege

Re: Basics of the base PMC class set

2004-06-11 Thread Dan Sugalski
At 2:38 PM +0200 6/11/04, Bernhard Schmalhofer wrote: Dan Sugalski wrote: I'm going to formally establish a basic set of parrot PMC classes. We're going to now have: Undef - The undefined value. Looks like 0, 0.0, false, or the empty string, depending on how you peer at it. Can transform into

Re: Basics of the base PMC class set

2004-06-11 Thread Bernhard Schmalhofer
Dan Sugalski wrote: > I'm going to formally establish a basic set of > parrot PMC classes. We're going to now have: > > Undef - The undefined value. Looks like 0, 0.0, false, or the empty > string, depending on how you peer at it. Can transform into any other > type. Assignment of an boolean, int

Re: Basics of the base PMC class set

2004-06-11 Thread Dan Sugalski
At 3:56 PM -0500 6/10/04, Matt Fowles wrote: All~ Speaking of basic PMC types, I remember a bunch of basic array PMCs that were discussed recently, some for each register type, some which autovivified, some which didn't etc. I believe that a stringarray was actually inserted (although currently

Re: Basics of the base PMC class set

2004-06-10 Thread Matt Fowles
All~ Speaking of basic PMC types, I remember a bunch of basic array PMCs that were discussed recently, some for each register type, some which autovivified, some which didn't etc. I believe that a stringarray was actually inserted (although currently it just extends perlarray). I currently ha

Basics of the base PMC class set

2004-06-10 Thread Dan Sugalski
Just to let everyone know, I'm going to make a few minor changes to the repository over the next day or so. In addition to what's hopefully a sane example of using morph (which, granted, has a somewhat limited useful range, but...) I'm going to formally establish a basic set of parrot PMC class