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 any other
 type. Assignment of an boolean, integer, float, bignum, or string turns
 it into a PMC of type Boolean, Integer, Float, BigNum, or String.

   Boolean - Basic true/false PMC

   Integer - Basic integer.

   Float - Basic floating point.

   BigNum - Basic extended-precision number

   String - Basic string

 The Boolean, Integer, Float, BigNum, and String types (and yes, BigNum
 and String don't exist. Yet) maintain their types and autoconvert
 incoming data, Undef morphs itself to the destination type and goes from
 there.

Hi,

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.

For right now I want to hold off--the basic PMC types all correspond to a low-level type, and we don't have a complex low-level type. We can think about complex numbers later on, probably as part of the library.
--
Dan


--------------------------------------it's like this-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to