Re: Wide chars and the VM

2009-04-19 Thread Andy Wingo
On Sat 18 Apr 2009 17:04, Mike Gran spk...@yahoo.com writes:

 Andy et al.

 What happens to the VM if characters become UCS-4 that ranges from 0 to
 10?

 For example, in compile-bytecode.scm, 

 (define (write-bytecode asm write-byte get-addr labels)
   (define (write-char c)
 (write-byte (char-integer c)))

We add a make-char24 instruction, and write a uint24 if the
(char-integer c) is bigger than 255. Sound right to you?

Andy
-- 
http://wingolog.org/




Wide chars and the VM

2009-04-18 Thread Mike Gran
Andy et al.

What happens to the VM if characters become UCS-4 that ranges from 0 to
10?

For example, in compile-bytecode.scm, 

(define (write-bytecode asm write-byte get-addr labels)
  (define (write-char c)
(write-byte (char-integer c)))
...