[x3d-public] ProtoBody completeness in nested Protos

John Carlson yottzumm at gmail.com
Fri Apr 29 13:45:10 PDT 2022


I was unable to focus on your pseudo code, Andreas, so I post this
follow-up.

Here’s some specific circular logic which should  not be allowed, editing
Andreas’ example.  Note that the extern PROTOs are at the “top” of the
files, so any serial loading would bounce back and forth between files.
Loading in parallel probably wouldn’t  work either.

The only way to handle this I know of is to avoid ExternProto’s during
parsing if you’ve already seen them.

I don’t know if the spec already handles this or not.   I agree that PROTOs
or extern PROTOs should not be able to reference each other circularly.

I do know there is “registration” of PROTOs, but I don’t know how it’s
related to scoping/nesting of PROTOs.

I will try to understand the pseudo code again.   If only we could animate
X3D processing via email!

John

On Fri, Apr 29, 2022 at 9:52 AM Andreas Plesch <andreasplesch at gmail.com>
wrote:

> Hi John,
>
> Here is a draft of an example of a circular definition:
>
> file A.x3d:
>
> ExternProtoDeclare name='B' url=' "B.x3d" '
>
> file B.x3d:
>
> ExternProtoDeclare name='A' url=' "A.x3d" '
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20220429/032d9333/attachment.html>


More information about the x3d-public mailing list