Re: [PATCH] Chr and ord, v0.2

2001-10-19 Thread Dan Sugalski
At 11:14 AM 10/19/2001 -0400, James Mastros wrote: >This is a first run at a patch to support the ord and chr opcodes. It >mainly, I'm afraid, serves as an example to show that we need to be able to >transcode out of the native encoding; I have to special-case it several ways >otherwise. >Limita

Re: chr and ord, v0.2

2001-10-19 Thread Dan Sugalski
At 09:38 PM 10/18/2001 -0400, James Mastros wrote: >Hey all. > This is my first working version of chr(i, s|sc) and ord(s, i|ic). It's >not nearly as clean as I'd like it. It's a lot more complicated and >low-level then I'd like. It is tested only on my system with INTVAL being a >long. I th

[PATCH] Chr and ord, v0.2

2001-10-19 Thread James Mastros
This is a first run at a patch to support the ord and chr opcodes. It mainly, I'm afraid, serves as an example to show that we need to be able to transcode out of the native encoding; I have to special-case it several ways otherwise. Limitations - Ord only works on native strings if they have 8

chr and ord, v0.2

2001-10-19 Thread James Mastros
Hey all. This is my first working version of chr(i, s|sc) and ord(s, i|ic). It's not nearly as clean as I'd like it. It's a lot more complicated and low-level then I'd like. It is tested only on my system with INTVAL being a long. I'd be very interested in better tests, or ideas for a better