W3C home > Mailing lists > Public > public-qt-comments@w3.org > November 2006

[Bug 1705] [FS] technical: 5.2 Module Declaration: cyclical imports

From: <bugzilla@wiggum.w3.org>
Date: Fri, 10 Nov 2006 21:22:36 +0000
CC:
To: public-qt-comments@w3.org
Message-Id: <E1Gidpc-0004rS-3J@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=1705





------- Comment #41 from jmdyck@ibiblio.org  2006-11-10 21:22 -------
(In reply to comment #40)
> >
> > What did you have in mind for defining "gather function signatures"?
> 
> This is essentially the proposed resolution for #1743.

As it stands, the =>stat1 judgment in Bug #1743 puts imported variables and
functions in its output env (which made sense for 1743, but is not wanted
here), and also will fail in the presence of an import cycle. To fix both of
these problems, you need to modify the judgment so that it does minimal
processing of prolog decls:

-- For decls that introduce a namespace binding, just add that binding to
statEnv.namespace (or statEnv.default_elem_namespace).

-- For function decls, just construct the signature and add it to
statEnv.funcType. (This will consult the statEnv, but should only need the
namespace bindings from the previous point, to expand QNames.)

-- For all other decls, it's a pass-through.
Received on Friday, 10 November 2006 21:22:55 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:16 UTC