mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-07-02 23:50:47 +02:00
lua/common cleanup
* module/language/lua/common.scm: Remove `or-eqv?'. Make a bit more idiomatic. * module/language/lua/compile-tree-il.scm: * module/language/lua/lexer.scm: * module/language/lua/parser.scm: * module/language/lua/runtime.scm: Replace or-eqv? instances with memq or memv.
This commit is contained in:
parent
32c58e2edd
commit
a0cecd8ff2
5 changed files with 8 additions and 19 deletions
|
@ -500,7 +500,7 @@
|
|||
(lambda* (e #:optional (base 10))
|
||||
(cond ((number? e) e)
|
||||
((string? e)
|
||||
(unless (or-eqv? base 2 8 10 16)
|
||||
(unless (memv base '(2 8 10 16))
|
||||
(runtime-warning "tonumber cannot respect bases other than 2, 8, 10, and 16"))
|
||||
(string->number e base))
|
||||
(else #nil))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue