Skip to content

Commit

Permalink
Improve MOP safety (#1182)
Browse files Browse the repository at this point in the history
Specifically, `class-slot-offset` and `find-method` need to be immune to
type errors for symbolic table references (which doesn't check
anything).

Also normalizes the behavior of `class-instance?`.

Impetus:
```
Gerbil v0.18.1-72-gb280d037 on Gambit v4.9.5-124-g6d1a9a9b
> (defclass Point (x y))
> (def a (Point 1 2))

Process scheme segmentation fault (core dumped)
```

Not good UX.
  • Loading branch information
vyzo authored Mar 20, 2024
1 parent b280d03 commit 0613f47
Show file tree
Hide file tree
Showing 71 changed files with 78,916 additions and 78,984 deletions.
116 changes: 58 additions & 58 deletions src/bootstrap/gerbil/compiler/base~0.scm

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0613f47

Please sign in to comment.