guile-devel
[Top][All Lists]
Advanced

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

Re: Recursive namespace


From: Rob Browning
Subject: Re: Recursive namespace
Date: 24 Apr 2001 00:56:31 -0500
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

Keisuke Nishida <address@hidden> writes:

> I'd like to allow the following notation for inter-module
> variable accesses:
> 
>   (List::list-ref '(0 1 2) 1)  => 1

I'm confused, why do you want a notation at all?  What's wrong with
(List list-ref) as a notation, and presumably something much more
efficient (a gensym?) internally?  Can you explain the application a
little more?

Also, why mixed case?

> This means that the variable `make' is defined in the module
> named `GOOPS', which is defined in the module OOP.  This is the
> idea of recursive namespace.

Unless I'm misunderstanding, when I was talking about recursive
namespaces before, I was talking about something different.  I was
talking about the (unexpected IMO) automatic inheritance of exported
symbols by a child module from its parent.

i.e. if there is a symbol in the module (foo bar) named frob, it will
also be visible to any other sub-module of (foo bar), including (foo
bar x), (foo bar y), etc.

-- 
Rob Browning <address@hidden> PGP=E80E0D04F521A094 532B97F5D64E3930



reply via email to

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