Re: Ord, v0.3, and ideas on chr

2001-10-23 Thread Dan Sugalski
At 03:02 AM 10/23/2001 -0400, James Mastros wrote: >I don't see what chr() should look like, though. What's the interface to >multiple encodings on the opcode level? I'd like to just say that chr >always creates a utf32 string. Nope, can't do that. >String encodings don't have fixed numbers in

Re: Ord, v0.3, and ideas on chr

2001-10-22 Thread Simon Cozens
On Tue, Oct 23, 2001 at 03:02:09AM -0400, James Mastros wrote: > + /* FIXME: How should I report this error? If someone's failed to implement ord, that's grounds for a segfault. > 74658072 Not portable. :( > output_is( <<'CODE', <

Ord, v0.3, and ideas on chr

2001-10-22 Thread James Mastros
Hey all. This is a much nicer implementation of ord, which does it properly as a string encoding "method". The only real uglyness I see is the "I have no mouth and I must scream" problem. I could take a Perl_Interpreter * parameter, but the only reason I need it is to fire off exceptions.