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
2003-05-05 07:09:35 +00:00
2003-05-23 07:28:29 +00:00
1999-09-14 12:45:02 +00:00
1999-09-14 12:45:02 +00:00
2002-01-08 08:45:39 +00:00
2002-09-25 11:36:14 +00:00
2002-01-09 16:33:20 +00:00
2001-12-17 08:47:35 +00:00
1999-09-14 12:45:02 +00:00
2003-08-01 12:58:08 +00:00
2002-02-26 08:58:27 +00:00
2001-12-17 08:50:26 +00:00
2003-04-14 09:47:29 +00:00
2002-05-16 14:51:10 +00:00
2002-04-21 16:44:31 +00:00
2002-02-25 09:01:02 +00:00

-*- Mode: Text; -*-

Copyright (c) 1994 Brian D. Carlstrom
See file COPYING for copying information.

Please report bugs to scsh-bugs@zurich.ai.mit.edu, and include
the version number in your message.

Installation instructions in file INSTALL.

A scsh manual is in directory doc/scsh-manual/.
A scsh paper is in directory doc/scsh-paper/.
A scsh quick reference is in file doc/cheat.txt.

Send mail to scsh-request@zurich.ai.mit.edu to be put on a
mailing list for announcements, discussion, bug reports, and bug
fixes.


S
Description
No description provided
Readme
15 MiB
Languages
Scheme 78%
C 18.1%
Emacs Lisp 3%
Makefile 0.7%
Shell 0.1%