Dan --

> Here's a list of manifest constants I think Parrot should know about. 
> Anyone care to add to the list?
> 
>       '' (empty string)
>       0
>       1
>       undef
>       NaN
>       pi
>       e
>       epsilon (maybe)

That brings up an interesting issue. The Ix registers initialize to
zero, as do the Nx registers. These are valid values for those
register types. However, the Sx registers initialize to NULL, which is
not treated elsewhere (such as print_sc) as a valid string value.

I think we need to either treat NULL as if it were an empty string
everywhere, or we need to initialize string registers to proper
empty string values.

So, organized by type, we have:

    STRING:    ''
    INTEGER:   0, 1
    NUMBER:    0.0, 1.0, pi, e, epsilon, NaN
    COOKIE:    undef

Now, I'm not sure what you mean when you say "Parrot should know
about" these. Are you referring to special treatment in the
assembler? Are you suggesting every const_table be initialized with
these values?


Regards,

-- Gregor
 _____________________________________________________________________ 
/     perl -e 'srand(-2091643526); print chr rand 90 for (0..4)'      \

   Gregor N. Purdy                          [EMAIL PROTECTED]
   Focus Research, Inc.                http://www.focusresearch.com/
   8080 Beckett Center Drive #203                   513-860-3570 vox
   West Chester, OH 45069                           513-860-3579 fax
\_____________________________________________________________________/

Reply via email to