Re: Exporting a nonexistent variable

2024-11-14 Thread Mikael Djurfeldt
I think the wording in the Guile manual is unfortunate. What RnRS says is that an identifier which is bound to a location is a variable. What the Guile manual is then discussing is our implementation details of this, where "bound" is used in a different sense than in RnRS. Den tors 14 nov. 2024

RE: Exporting a nonexistent variable

2024-11-14 Thread Developers list for Guile, the GNU extensibility library
(My current e-mail client keeps corrupting guile-devel@gnu.org and refuses access to the contact list, please ignore wrong address) >there are various use-cases where one wants to export a symbol [sic] from a >module without binding [sic] any value to it in the module where it is being >exporte

Re: Exporting a nonexistent variable

2024-11-13 Thread Attila Lendvai
> I think Guile could report a warning if a nonexistent variable is > exported as the cause of this kind of errors may be difficult to find in > a large program. you are exporting _symbols_ (unique identities) from modules, not variables (or bindings). there are various use-cases where one want

Re: Exporting a nonexistent variable

2024-11-05 Thread Tommi Höynälänmaa
Thanks! Maxime Devos kirjoitti 5.11.2024 klo 11.23: I’ve send it to bug-guile, should appear in the issue tracker soon -- Kotisivu / Homepage:http://www.iki.fi/tohoyn/ Sähköposti / E-Mail:tommi.hoynalan...@iki.fi GPG-sormenjälki / GPG fingerprint: 55F4 2477 7155 3528 5CB2 2B7A BB86 1FDE 4046

RE: Exporting a nonexistent variable

2024-11-05 Thread Maxime Devos
#74210

RE: Exporting a nonexistent variable

2024-11-05 Thread Maxime Devos
I’ve send it to bug-guile, should appear in the issue tracker soon

Re: Exporting a nonexistent variable

2024-11-04 Thread Tommi Höynälänmaa
Here is another example: --- mod1.scm --- (define-module (mod1)) (export myproc) (define (myproc0)   (display "Hello\n")) --- end --- --- mod2.scm --- (define-module (mod2)) (export myproc2) (use-modules (mod1)) (define (myproc2)   (display "Hello again\n")) --- end --- --- program.scm -

RE: Exporting a nonexistent variable

2024-11-04 Thread Maxime Devos
>I think Guile could report a warning if a nonexistent variable is >exported as the cause of this kind of errors may be difficult to find in >a large program. During compilation, code is analysed and IIRC there is a warning for unbound variables. (I don’t know if warning is the default though.)