forked from alex-eg/sex
remove closures, keep lambdas
A closure was a code pointer beside an inline environment: capture records, per-signature structs, conversion thunks and call helpers. It is gone; a lambda still lifts to an ordinary function and a (fn ...) value is still a bare code pointer. The capture budget, the environment union and the closure glyph go with it. The implementation is kept at tag 0.0.1.
This commit is contained in:
@@ -10,11 +10,8 @@
|
||||
;;;
|
||||
;;; It also checks what only a second translation unit can check: that an
|
||||
;;; imported type reaches the type database, by expanding a macro that
|
||||
;;; reads the imported struct's fields; and that a closure type crossing
|
||||
;;; the boundary works both ways -- one built in the module and called
|
||||
;;; here, one built here and called there, through a code pointer that is
|
||||
;;; static in the other object. And that a record can cross as a handle
|
||||
;;; alone, its fields left behind and its methods still found.
|
||||
;;; reads the imported struct's fields; and that a record can cross as a
|
||||
;;; handle alone, its fields left behind and its methods still found.
|
||||
;;;
|
||||
;;; The public forms carry comments in their headers, which the reduction
|
||||
;;; to a prototype and to an extern both have to look past. And a type the
|
||||
@@ -152,7 +149,6 @@
|
||||
"text times "
|
||||
"text times "
|
||||
"mood 1"
|
||||
"closure 15 21 201"
|
||||
"vec2 7 7"
|
||||
"tally 2"
|
||||
"board 42"
|
||||
|
||||
Reference in New Issue
Block a user