parrotcode: Parrot's internal data types | |
Contents | Documentation |
docs/pdds/pdd04_datatypes.pod - Parrot's internal data types
This PDD describes Parrot's internal data types.
{{ NOTE: this is a good overview, but we need more complete specifications of the behavior of the datatypes. }}
This PDD details the basic datatypes that the Parrot core knows how to deal with. Three of these (the integer, floating point and string datatypes) have no additional semantics. The fourth datatype, the Parrot Magic Cookie (PMC) acts as the basis for all high level languages running on top of Parrot; only the most basic aspects are described here.
Note that PMC and string internals are volatile and may be changed in the future (although this will become increasingly unlikely as we near v1.0). Access from external code to the internals of particular datatypes should be via the extension mechanism (see docs/pdds/pdd11_extending.pod, which has more explicit guarantees of stability.
Integer data types are generically referred to as INT
s.
These are whatever size native integer was chosen at Parrot configuration time.
The C-level typedefs INTVAL
and UINTVAL
get you a platform-native signed and unsigned integer respectively.
Floating point data types are generically referred to as NUM
s.
These are whatever size float was chosen when parrot was configured.
The C level typedef FLOATVAL
will get you one of these.
None.
The perl modules Math::BigInt and Math::BigFloat. Alex Gough's suggestions for bigint/bignum implementation, outlined in docs/pdds/pdd14_bignum.pod. The Unicode standard at http://www.unicode.org.
1.4
Maintainer: Dan Sugalski <dan@sidhe.org>
Class: Internals
PDD Number: 4
Version: 1.5
Status: Developing
Last Modified: 11 June 2005
PDD Format: 1
Language: English
|