Skip to content

[BUG FIX] Incomplete TYPEP implementation for single floats.#735

Closed
didierverna wants to merge 1 commit intoarmedbear:masterfrom
didierverna:master
Closed

[BUG FIX] Incomplete TYPEP implementation for single floats.#735
didierverna wants to merge 1 commit intoarmedbear:masterfrom
didierverna:master

Conversation

@didierverna
Copy link
Copy Markdown
Contributor

This fixes the following problems:

(typep 1.0 'number) -> T but (typep 1.0 (find-class 'number) -> NIL
(typep 1.0 'real) -> T but (typep 1.0 (find-class 'read) -> NIL

2026-03-05 Didier Verna didier@didierverna.net

* src/org/armedbear/lisp/SingleFloat.java (typep): Fast-check the type specifier against the REAL and NUMBER built-in classes; not only the symbols.

This fixes the following problems:

(typep 1.0 'number) -> T but (typep 1.0 (find-class 'number) -> NIL
(typep 1.0 'real)   -> T but (typep 1.0 (find-class 'read)   -> NIL

2026-03-05  Didier Verna  <didier@didierverna.net>

	* src/org/armedbear/lisp/SingleFloat.java (typep): Fast-check the
	type specifier against the REAL and NUMBER built-in classes; not
	only the symbols.
easye pushed a commit to easye/abcl that referenced this pull request Mar 10, 2026
(Didier Verna)

This fixes the following problems:

(typep 1.0 'number) -> T but (typep 1.0 (find-class 'number) -> NIL
(typep 1.0 'real)   -> T but (typep 1.0 (find-class 'read)   -> NIL

2026-03-05  Didier Verna  <didier@didierverna.net>

	* src/org/armedbear/lisp/SingleFloat.java (typep): Fast-check the
	type specifier against the REAL and NUMBER built-in classes; not
	only the symbols.

c.f. <armedbear#735>
@easye
Copy link
Copy Markdown
Collaborator

easye commented Mar 10, 2026

Superseded by #736.

@easye easye closed this Mar 10, 2026
easye pushed a commit that referenced this pull request Mar 11, 2026
(Didier Verna)

This fixes the following problems:

(typep 1.0 'number) -> T but (typep 1.0 (find-class 'number) -> NIL
(typep 1.0 'real)   -> T but (typep 1.0 (find-class 'read)   -> NIL

2026-03-05  Didier Verna  <didier@didierverna.net>

	* src/org/armedbear/lisp/SingleFloat.java (typep): Fast-check the
	type specifier against the REAL and NUMBER built-in classes; not
	only the symbols.

c.f. <#735>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants