mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-01 04:10:18 +02:00
goops moving away from evaluator opcodes, and a primitive compilation fix
* module/oop/goops.scm (@slot-ref, @slot-set!): Define "primitives" for these. Probably should do something more general, though, allowing @struct-ref. * module/language/tree-il/primitives.scm (add-interesting-primitive!): Error if the primitive isn't bound.
This commit is contained in:
parent
c58b8c5aed
commit
83c7655002
2 changed files with 6 additions and 1 deletions
|
@ -79,7 +79,8 @@
|
|||
|
||||
(define (add-interesting-primitive! name)
|
||||
(hashq-set! *interesting-primitive-vars*
|
||||
(module-variable (current-module) name)
|
||||
(or (module-variable (current-module) name)
|
||||
(error "unbound interesting primitive" name))
|
||||
name))
|
||||
|
||||
(define *interesting-primitive-vars* (make-hash-table))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue