[x3d-public] ProtoBody completeness in nested Protos

Andreas Plesch andreasplesch at gmail.com
Tue May 3 07:21:00 PDT 2022

The latest xdom dev implements inheriting parent context externproto
definition to be used inside proto definitions referenced in other
extern protos:


I think inheriting inherited parent contexts should also work but I
did not test this. There are probably other twists which would need
checking. Are there other examples which do this ?

Checking if inheriting parent context externproto definition inside
regular protos works would be next. Pretty sure that inheriting parent
context protos inside subsequent proto definition was already covered
by some of the tests.

Cheers, Andreas

On Tue, Apr 26, 2022 at 2:37 PM Andreas Plesch <andreasplesch at gmail.com> wrote:
> > Date: Tue, 26 Apr 2022 10:57:10 -0600
> > From: GPU Group <gpugroup at gmail.com>
> >
> > https://www.web3d.org/documents/specifications/19775-1/V4.0/Part01/concepts.html#Prototypescopingrules
> >
> > "A prototype may be instantiated in a file anywhere after the completion of
> > the prototype definition."
> > If the specs meant what you are suggesting --protos are self contained
> > including proto definitions-- then it would have said "context" rather than
> > "file"
> > "Prototype definitions appearing inside a prototype definition ( i.e.,
> > nested) are local to the enclosing prototype. "
> > - refinement of the above file order rule.
> Ok. thanks ! There it is. Time to look into this, then.
> -Andreas

Andreas Plesch
Waltham, MA 02453

More information about the x3d-public mailing list