guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: limits for (export ...)


From: Ian Price
Subject: Re: limits for (export ...)
Date: Sat, 29 Oct 2011 18:51:13 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

"Pavel V. Kaygorodov" <address@hidden> writes:

> Does guile-2 limit the number of exported symbols for libraries?

I decided to generate a file with ~100 definitions.

; manysyms.scm
(define-module (manysyms)
  #:export (sym0 sym1 ... sym101))

(define sym0 'sym0)
(define sym1 'sym1)
...
(define sym101 'sym101)

; test.scm
(use-modules (manysyms))
(write (list sym0 sym1 ... sym101))

And when I ran test.scm I got the expected output, so I'm not sure there
is.

Although, and I don't think this is related to your issue, when
trying out the (list sym0 ...) from the repl, I did get an error

scheme@(guile−user)> (list sym0 sym1 ... sym100 sym101)
;;; <stdin>:3:0: warning: possibly unbound variable `sy'
;;; <stdin>:3:0: warning: possibly unbound variable `m85'
<unnamed port>:3:0: In procedure #<procedure a08bf50 at <current input>:3:0 ()>:
<unnamed port>:3:0: In procedure module−lookup: Unbound variable: sy

Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
scheme@(guile−user) [1]> ,q

But further exploration shows that all the symbols are in fact bound,
and this error only seems to occur if there is no line break at some
point after sym8 and before sym85. Presumably, I'm running up against
some reader limit there.

-- 
Ian Price

"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]