[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problems with safe environments
From: |
Marius Vollmer |
Subject: |
Re: Problems with safe environments |
Date: |
13 Jul 2001 01:03:08 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.102 |
Martin Grabmueller <address@hidden> writes:
> guile> (use-modules (ice-9 safe))
>
> Running with GUILE_WARN_DEPRECATED=detailed gives tons of
>
> [...]
> (You just re-exported `char-ci>?' from `(ice-9 safe-r5rs)'.)
>
> messages. (Compiling with --disable-deprecated does not work at all,
> because then `define' is not defined in safe environments.)
This is correct. You export `define' but you never define it.
> Again, I don't know how to fix this. I tried replacing the `export'
> with `re-export' in null.scm, but this just gives an `unbound
> variable: unquote' error.
That is correct as well, since there is no definition for `unquote'
and `unquote-splicing'.
The fix is to use `re-export' and not export `unquote' etc. Also,
safe-.r5rs.scm should use re-export, except for `null-environment'
which has a proper local definition. I have fixed this.
I noticed that we don't have `rationalize', `numerator' and
`denominator', but we should even if we don't have rationals.