- doc.txt, documented the sqrt() function
- typecheck-expression.ss, line-wrapped to <100 columns
- type-utils.ss, changed printout for void type from "<>" to "void"

svn: r980
This commit is contained in:
Carl Eastlund 2005-10-04 22:01:03 +00:00
parent 261662f378
commit f3d24c7d46
3 changed files with 11 additions and 4 deletions

View File

@ -95,6 +95,11 @@ String operations:
- The zero-based index cannot be negative and must be less
than the string length.
Numeric operations:
> sqrt(float f) => float
- Produces the square root of its argument.
_Operators_
Unary operators:

View File

@ -57,7 +57,7 @@
(symbol->string name)]
[(struct honu:type-tuple (_ args))
(if (null? args)
"<>"
"void"
(string-append "<"
(fold (lambda (t i)
(string-append i ", " (printable-type t)))

View File

@ -536,7 +536,9 @@
[honu:let-body e1])
t1))]
[(struct honu:seq (_ effects value))
(let-values ([(effects _) (map-two-values (lambda (e)
(let-values ([(effects _)
(map-two-values
(lambda (e)
(typecheck-expression lenv (make-void-type (honu:ast-stx e)) e))
effects)]
[(e1 t1) (typecheck-expression lenv ctype value)])