On Sat, 26 Jan 2002, David Chan wrote:

> Hi,
>
> Which Parrot strings are supposed to be false in a boolean context?
> For instance, is "\x{FF10}" (FULLWIDTH DIGIT ZERO) false?
>
> docs/strings.pod says[1] a string is false if it "consists of one
> digit character whose numeric value (as decided by its character type)
> is zero".
>
> However, string.c says[2] 'A string is true if it is equal to anything
> but "" and "0"' - implying that "\x{FF10}" is true.  But then it

The comment is meant to be encoding and character set agnostic.  The
unicode character set will need to eventualy provide a get_digit
method which does turn \x{FF10} into a numeric zero.  It's just that
our unicode support is lagging behind ascii, with most (all?) of the
methods being nothing more than placeholders.

Alex Gough

Reply via email to