Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Basics of the base PMC class set
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Dan Sugalski  
View profile  
 More options Jun 10 2004, 4:48 pm
Newsgroups: perl.perl6.internals
From: d...@sidhe.org (Dan Sugalski)
Date: Thu, 10 Jun 2004 16:48:17 -0400
Local: Thurs, Jun 10 2004 4:48 pm
Subject: Basics of the base PMC class set
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 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.

These six types will form the basic scalar types for parrot. We'll
work on formally defining them, then move on to the aggregate (hash &
array) types and the IO & event bits. (And no, I've not forgotten
events, IO, or (unfortunately) strings. I'm hoping to overwhelm Leo
for when he gets back. Yeah, that's the ticket! :)
--
                                Dan

--------------------------------------it's like this-------------------
Dan Sugalski                          even samurai
d...@sidhe.org                         have teddy bears and even
                                       teddy bears get drunk


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.