> So, you have a library that may or may not export a macro, say let^,
> and you have an expression that may or may not reference let^.  If
> the expression references let^, and let^ was not exported, which
> would normally result in a syntax error, you want to defer the error
> until run time instead of being signaled at macro-expansion time.

I actually don't want the error at all - I want to detect that let^ is
not exported and therefore remove the expression that references it
(or replace it with something). This can happen at macro expansion
time. Still not possible?

On Sun, Jun 14, 2009 at 8:51 PM, Abdulaziz Ghuloum<[email protected]> wrote:
>
> On Jun 14, 2009, at 1:04 PM, Ramana Kumar wrote:
>
>> I will try to take up this suggestion and see if it can work. One
>> problem I immediately run into is that some of the exports that may or
>> may not be present are macros (and others are values).
>
> So, you have a library that may or may not export a macro, say let^,
> and you have an expression that may or may not reference let^.  If
> the expression references let^, and let^ was not exported, which
> would normally result in a syntax error, you want to defer the error
> until run time instead of being signaled at macro-expansion time.
>
> I don't see a way to do this in ikarus without you having to hack on
> the psyntax internals to provide this facility.  It's not hard to do
> but I don't know how generally useful this is.  It might be better
> in the long run that you try to work around the problem (by changing
> it slightly perhaps) instead of me providing an ad hoc solution.
>
> Aziz,,,
>

Reply via email to