guile-devel
[Top][All Lists]
Advanced

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

Re: New syntax: (: MODULE-NAME VARIABLE-NAME)


From: Neil Jerram
Subject: Re: New syntax: (: MODULE-NAME VARIABLE-NAME)
Date: 15 Nov 2003 19:22:06 +0000
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

>>>>> "Marius" == Marius Vollmer <address@hidden> writes:

    Marius> Neil Jerram <address@hidden> writes:
    >> OK.  One other specification query: will `:' only work if the relevant
    >> binding is exported?

    Marius> Yes, I think that's more disciplined.

For most uses I agree, but what about debugging (or introspection)
code, where it might be useful to say things like

    (break! (: (ice-9 whatnot) internal-proc))

where internal-proc is not exported.  Obviously a `:'-like macro for
non-exported bindings could be implemented separately (I think it just
needs resolve-module instead of resolve-interface), but I wonder if
it's worth designing an interface now that neatly covers both
possibilities.

For example:
    (: MOD-NAME VAR-NAME)  -> look up from exported bindings only
    (: MOD-NAME VAR-NAME internal) -> look up from all bindings

Regards,
        Neil





reply via email to

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