-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Missing is DEFMETHOD support, the *instance-type* in src/code/primordial-type.lisp causes a (declare (type instance x)) for defmethod and that breaks.
- Loading branch information
Showing
17 changed files
with
112 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
(defpackage :new-uint-type | ||
(:use :cl)) | ||
|
||
(defclass udef-meta-class () | ||
( | ||
#+(or)(sb-mop:class-default-initargs :initform ()) | ||
) | ||
) | ||
|
||
|
||
(defmethod make-instance ((class udef-meta-class) &key) | ||
nil) | ||
|
||
(defclass my-enum-1 (sb-int:udef-inttype) | ||
((id :initform (error "need ID") | ||
:initargs id | ||
:type (unsigned-byte 8))) | ||
(:metaclass udef-meta-class)) | ||
|
||
|
||
(progn | ||
(eval `(defmethod make-instance ((class symbol) &key) | ||
nil)) | ||
(trace "SB-PCL") | ||
(eval `(defmethod make-instance ((class character) &key) | ||
nil)) | ||
(untrace "SB-PCL")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
(assert (not (typep 4 'sb-kernel::udef-inttype))) | ||
(assert (not (sb-int:udef-inttype-p 4))) | ||
|
||
(sb-int:udef-inttype-p | ||
(sb-int:make-udef-inttype 51)) | ||
|
||
#+broken | ||
(assert | ||
(sb-int:udef-inttype-p | ||
(sb-int:make-udef-inttype 51))) | ||
|
||
|
||
|
||
(defvar *x* (make-array 20000 :initial-element (sb-int:make-udef-inttype 541))) | ||
(sb-ext:gc) | ||
|
||
(print (sb-int:udef-inttype-value (aref *x* 0))) | ||
(print (type-of (aref *x* 0))) | ||
(print (aref *x* 0)) | ||
(print (sb-int:udef-inttype-p (aref *x* 0))) | ||
|
||
|
||
(defmethod my-dispatch ((y t)) | ||
:anything) | ||
(defmethod my-dispatch ((x sb-int:udef-inttype)) | ||
:udef) | ||
|
||
#+broken | ||
(my-dispatch (sb-int:make-udef-inttype 1)) | ||
|
||
(assert (eq :anything | ||
(my-dispatch 1))) | ||
|
||
#+broken | ||
(assert (eq :udef | ||
(my-dispatch (sb-int:make-udef-inttype 1)))) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters