Commit Graph

9 Commits

Author SHA1 Message Date
jaortega c818c6316c r0-t-stable merged into HEAD
- scheme/sort/* added by hand (for some reason it wasn't merged in)
 - currently, some READ-PARAGRAPH tests don't pass: apparently,
   due to some problems with the regexp library.
2008-01-26 17:27:14 +00:00
mainzelm 8eb6a07ec3 Subject: Extend type<->sexp conversion to variable type
type->sexp was not capable of converting the variable type to a
sexp. This caused problems if the module system wanted to tell the
user that the types of exported bindings did not match:

config> (define-structure foo (export (bar :syntax)) (open scheme) (begin (define bar 1)))
; no values returned
config> ,user
> ,open foo

Error: exception
       wrong-type-argument
       (checked-record-ref '(variable #{Type :value #f #f}) '#{Record-type 14 meta-type} 1)

I've now extended TYPE->SEXP by a check for the variable type and let
it produce a list with 'VARIABLE as first and the actual type as
second element. Likewise, I extended SEXP->TYPE to produce a variable
type if 'VARIABEL is the first element of a list.

This seems to work but a second look by someone who really understands
the type system would be appreciated.

(Merge from s48 rev 423)
2003-08-04 07:32:02 +00:00
mainzelm 855cffa3c7 Provide LOAD-PORT to load forms from a port. 2003-03-13 07:49:49 +00:00
sperber 69a2031350 Replace half-assed DYNAMIC-WIND protection of input port by the one
Richard Kelsey suggested for Scheme 48.
2002-12-17 13:50:14 +00:00
sperber 4c90a345ec In READ-FORMS, open/close input port in DYNAMIC-WIND before/after
thunks.
2002-12-16 11:00:11 +00:00
mainzelm 06b68b7c5e Cells as stob (from S48 0.57). 2002-04-04 08:13:53 +00:00
mainzelm 5aee745efb New module language from S48 0.57. 2002-04-03 12:17:19 +00:00
mainzelm 68eb897e20 Merged in macro expander changes from Scheme 48 0.56. 2001-07-09 14:15:05 +00:00
marting 606245fc41 *** empty log message *** 1999-09-14 12:45:02 +00:00