Re: What should the semantics of hierarchical modules be?
- From: "Brian Hulley" <brianh@xxxxxxxxxxxx>
- Date: 30 Apr 2005 06:21:47 -0700
Actually, thinking about it more I've come to the conclusion that
a.b.pred should mean that pred/0 must exist in module a.b itself ie
that the search through parent modules and imported modules would only
occur if an unqualified predicate is given ie ?- pred. This solves the
other questions in my last post.
Also, I've decided not to have a global scope resolution operator (the
prefix dot). I had taken this from C++, but both Java and C# don't seem
to need this.
For anyone else who might be implementing a hierarchical module system
I found a good description of a name resolution algorithm in section
3.8 of the C# language definition.
Regards, Brian.
.
- References:
- What should the semantics of hierarchical modules be?
- From: Brian Hulley
- What should the semantics of hierarchical modules be?
- Prev by Date: Re: bad pi
- Next by Date: Re: What should the semantics of hierarchical modules be?
- Previous by thread: What should the semantics of hierarchical modules be?
- Next by thread: Re: What should the semantics of hierarchical modules be?
- Index(es):