1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-10 14:00:21 +02:00

Allow peval to gnaw on string->symbol, symbol->string

* module/language/tree-il/primitives.scm (*interesting-primitive-names*):
  (*effect-free-primitives*): Add string->symbol and symbol->string.
This commit is contained in:
Andy Wingo 2018-01-05 15:17:46 +01:00
parent 6fdbd3b17b
commit a821042480

View file

@ -1,6 +1,6 @@
;;; open-coding primitive procedures
;; Copyright (C) 2009-2015, 2017 Free Software Foundation, Inc.
;; Copyright (C) 2009-2015, 2017-2018 Free Software Foundation, Inc.
;;;; This library is free software; you can redistribute it and/or
;;;; modify it under the terms of the GNU Lesser General Public
@ -54,6 +54,8 @@
pair? null? list? symbol? vector? string? struct? number? char? nil?
bytevector? keyword? bitvector?
symbol->string string->symbol
procedure? thunk?
complex? real? rational? inf? nan? integer? exact? inexact? even? odd?
@ -178,6 +180,7 @@
exact-integer?
char<? char<=? char>=? char>?
integer->char char->integer number->string string->number
symbol->string string->symbol
struct-vtable
length string-length vector-length bytevector-length
;; These all should get expanded out by expand-primitives.